How to only print GUI graph with GUIDE toolbar
Show older comments
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!
Answers (1)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!