Hi Majid,
Thanks for your post here! At this time, there is no way to directly output the plot of the Spot Diagram with the API. You will essentially have to do what you are already performing, which is running the tool in the API and using GetResults() in conjunction with some plotting in MATLAB to get the same picture you're looking for. We also have a forum post here which goes into a bit more detail and provides another example for replicating the output image.
You might already know this, but we do have the EXPORTJPG and EXPORTBMP keywords in our Zemax Programming Language (ZPL). It would mean converting your code into a different language, though.
If you're still having issues with the plot output, would you be able to explain the shape differences? Perhaps we could provide some additional comments after your reply.
Thanks, and let us know how these thoughts work out for you!
~ Angel
Hello Angel,
Thank you for the answer. Then I guess I do this one using ZPL, because I need to do it asap. Later I will post the results from the MATLAB Routin and a Spot Diagram for a Singlet, and maybe you can help further.
All the best,
Majid
Hello Majid,
Thanks for your feedback.
You may read more about the EXPORTBMP and EXPORTJPG macro keywords in the Help files at:
The Programming Tab > About the ZPL > KEYWORDS (about the zpl) > EXPORTBMP
Further application examples can be found in knowledgebase here:
How do I create presentation quality graphics and animations?
Automatically saving analysis windows
When you have some time, we are looking forward to see you Matlab code and results to investigate the differences.
If you have further questions, please let us know and we will be happy to help!
Best,
Csilla