Data brush in GUI

3 views (last 30 days)
Kim Nguyen
Kim Nguyen on 21 Jan 2013
I want to have the data brush tool that matlab uses in its plot in the gui similar to pan and zoom. i would use the data brush tool to high-light the data and copy the data into an excel. I have many case files and so therefore i would like to graph all of them on the same graphs. the gui has over 1000 scenarios though so i dont know want all of them.
any help would be appreciated, thanks
  2 Comments
Kim Nguyen
Kim Nguyen on 22 Jan 2013
another method would be, save the sub plots as .fig so that i can open them and use the data brush tool so if theres a way to save them pelase let me know. i tried usign the saveas function but i think its more complicated to use in a gui as far as structurig the command
Kim Nguyen
Kim Nguyen on 23 Jan 2013
Edited: Kim Nguyen on 23 Jan 2013
here is a code that i found that saves the entire gui layout... however i only want to save the axes, how would i modify this code so it only saves the axes? this code is palced in my save button call back function
fileName = inputdlg('Please enter the name for your figures');
directoryName = uigetdir('','Please select a folder to save to');
if directoryName == 0 %# User pressed the "Cancel" button...
directoryName = ''; %# ...so choose the empty string for the folder
end
filePath = fullfile(directoryName,fileName{1}); %# Create the file path
extensions = {'fig','bmp'};
for k = 1:length(extensions)
saveas(gcf,filePath,extensions{k}); %# Save the file
set(gcf,'PaperPositionMode','auto');
end

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!