Borrar filtros
Borrar filtros

Issue with minor and major grid line styles

4 visualizaciones (últimos 30 días)
David
David el 16 de Abr. de 2015
Respondida: pfb el 16 de Abr. de 2015
Hi,
I have a wierd issue when saving a scatter plot, and grid line styles.
When using the code
grid on;
grid minor;
set(gca,'GridLineStyle','--','minorgridlinestyle',':');
to create this plot http://i.imgur.com/OP9yxA3.png
Everything is fine. (note this is a screencap, not a save)
Yet when saving the figure with
saveas(gcf, fullfile(outputfile, ['...','.png']))
Note only one of the gridlines is set as it should.
Im an stumped, what could be cuasing this?

Respuestas (1)

pfb
pfb el 16 de Abr. de 2015
I stumbled on this problem as well. I think you need to set the ticks manually.
set(gca,'xtick',200:200:1000);
set(gca,'ytick',3:0.2:5);

Categorías

Más información sobre Scatter Plots 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