I'm not too happy with the way the y axis is labeled here. Is there a way to force it to use scientific notation for either all or none of the labels?
That would be a TikZ/pgfplots question I guess. I'd recommend looking at the pgfplots manual -- you'll find all the options there.
Thanks. If anyone else finds this page looking for the same thing: it was on page 543 of the manual.
\begin{axis}[ x tick label style={/pgf/number format/fixed}]
It seems that if I have enter key in y label, e.g. multi lines y label. it will cause an error. Is is possible to fix this problem? I have many figures containing multiline labels.
Thanks a lot for your attention. wd
if iscell(axisLabels.y) axisLabels.y = [ axisLabels.y{:} ]; end
Antwerpen
That would be a TikZ/pgfplots
That would be a TikZ/pgfplots question I guess. I'd recommend looking at the pgfplots manual -- you'll find all the options there.
Thanks. If anyone else finds
Thanks. If anyone else finds this page looking for the same thing: it was on page 543 of the manual.
\begin{axis}[
x tick label style={/pgf/number format/fixed}]
The multiline y label
It seems that if I have enter key in y label, e.g. multi lines y label. it will cause an error.
Is is possible to fix this problem?
I have many figures containing multiline labels.
Thanks a lot for your attention.
wd
The above problem is fixed
if iscell(axisLabels.y)
axisLabels.y = [ axisLabels.y{:} ];
end