Hi guys!
I have added a toolbar for my GUI ( that has some data and a graph). I added save, print and data cursor tools to it. How can I do following:
- When someone clicks the print button I want it to print only the graph and set the defaul layout to 'Landscape'.
- Clicking the save button does nothing. How can I configure it to save the graph as a picture (if that's even possible).
- Clicking the data cursor option allows me to get values from any location on my gui. I want it to give values only of the graph.
I tried looking at the properties in the GUIDE toolbar editor, but can't find anything like that there. I also tried to using a simple 'Print' pushbutton for printing with function 'print(handles.axes1)' in its callback, but it gives me the following error:
Error using LocalCheckHandles (line 87)
Handle Graphics handle must be a Figure.
Any help is really appreciated!