Scaling of crystal shape plot in Matlab Figure #2236
-
Dear all, the plotting of crystal shapes is great (also on its own). However, I can not seem to ensure that the scaling of the plotted crystal shape always fits into the figure. This can also be seen on some of the plots in the MTEX documentation of crystal shapes (https://mtex-toolbox.github.io/CrystalShapes.html). How can I make the crystal shape fit into the Matlab figure? ( I am using mtex 5.11.2) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
In the documentation you linked, it is mentioned how to scale the size of the crystalShapes:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your suggestion. I had tried the scaling. The following code (slightly adapted from the documentation) provides a plot inside the figure that appears cropped at the top and bottom inside the figure. This behavior, i.e. the graphical representation of the crystal shape inside the figure object, is independent of the scaling argument My main interest is to export the nice graphical visualization of the crystal shape as a vector graphic.
|
Beta Was this translation helpful? Give feedback.
-
Yah, I see now... even in the documentation, some of the figures are clipped out of frame. add a zoom specification following the plot command... to zoom out and see the whole shape: plot(cS,'colored')
zoom(.5) Also... FWIW, there is a fancy quartz crystal shape that ships with mtex (and for some odd reason, it does not require the zoom to show the whole thing): csq = crystalShape.quartz
plot(csq, 'colored') |
Beta Was this translation helpful? Give feedback.
Yah, I see now... even in the documentation, some of the figures are clipped out of frame.
add a zoom specification following the plot command... to zoom out and see the whole shape:
Also... FWIW, there is a fancy quartz crystal shape that ships with mtex (and for some odd reason, it does not require the zoom to show the whole thing):