Use "breakyaxis" with vectorgraphics

3 visualizaciones (últimos 30 días)
Jonas Grossmann
Jonas Grossmann el 9 de Dic. de 2019
Respondida: Navya Seelam el 13 de Dic. de 2019
Hi everybody,
Im creating vector grahpc plots (e.g. pdf or eps, NOT png or jpeg) and I want to break my y-Axis in those plots. I know that the general recommendation for this issue is the "breakyaxis" function (https://de.mathworks.com/matlabcentral/fileexchange/45760-break-y-axis). But it doesn't work for me as it does not preserve my vector grahics, if i draw the plot and then save it with "export_fig([save_path save_name], '-pdf')"
If anybody has a good recommendation for how to create a y-Axis plot while preserving the vector graphic I'd highly appreciate any suggestions!
Cheers,
Jonas

Respuestas (1)

Navya Seelam
Navya Seelam el 13 de Dic. de 2019
Hi,
Try to save it using print. Typically, print uses the Painters renderer when generating vector graphics files. However, for some complex figures, print uses the OpenGL renderer. To ensure that print uses the Painters renderer, set the Renderer property for the figure to 'painters' or specify '-painters' as an input argument to print. Refer to this link for more details

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by