Restore View returns the axis of an old data set when the dataset is changed.
I have made an app in app designer where I have a dropdown menu to select from various sources of data. I get the user to select the data they want, and it then plots this data against a time window that is also specified by the user. I specify the y-axes limits to be the min and max values of the chosen data set within the specified time interval. I then would like to zoom into the data and then restore the view. This works fine for the first dataset. If the user then selects a different set of data from the dropdown, the plot is made with the new data and the y-axes limits are set to the new min and max values of the new dataset within the same specified time window. However, if the user zooms in and restores the view, the y-axes limits of the old dataset are returned as the y-axes limits. Does anyone have any ideas how to fix this issue?I have made an app in app designer where I have a dropdown menu to select from various sources of data. I get the user to select the data they want, and it then plots this data against a time window that is also specified by the user. I specify the y-axes limits to be the min and max values of the chosen data set within the specified time interval. I then would like to zoom into the data and then restore the view. This works fine for the first dataset. If the user then selects a different set of data from the dropdown, the plot is made with the new data and the y-axes limits are set to the new min and max values of the new dataset within the same specified time window. However, if the user zooms in and restores the view, the y-axes limits of the old dataset are returned as the y-axes limits. Does anyone have any ideas how to fix this issue? I have made an app in app designer where I have a dropdown menu to select from various sources of data. I get the user to select the data they want, and it then plots this data against a time window that is also specified by the user. I specify the y-axes limits to be the min and max values of the chosen data set within the specified time interval. I then would like to zoom into the data and then restore the view. This works fine for the first dataset. If the user then selects a different set of data from the dropdown, the plot is made with the new data and the y-axes limits are set to the new min and max values of the new dataset within the same specified time window. However, if the user zooms in and restores the view, the y-axes limits of the old dataset are returned as the y-axes limits. Does anyone have any ideas how to fix this issue? restoreview, appdesigner, ylim MATLAB Answers — New Questions