You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to tell matlab2tikz, not to interpret the text and exchange $ with \$ but just take it as is?
The compiled Picture looks like this:
For the Y-axis, math font is used, but as labels are often text, for the X-axis the normal text font style is used, why I tried with $...$ environment.
So my original Problem is simply, that I dont want every ticklabel to be printed, but have it both in math font style.
I appreciate any help or workaround for this problem. Probably I am missing something as these are my first tries with this package.
Simon
The aspects that have an impact on how those get displayed:
whether or not override some properties (e.g. as using xticks/xticklabels) -> the general philosophy in matlab2tikz is that if we notice you let MATLAB do its thing, we assume you do not care about how it looks and that we can let pgfplots do its own thing, which might not match MATLAB behavior), that is probably part why you see that behavior
how those $ get interpreted, is set in part by which text interpreter you set for the particular object in MATLAB. You may want to try changing that (if memory serves me well, setting it to latex for the tick labels may do the trick)
in matlab2tikz we have tons of arguments that can change the behavior of the conversion, see help matlab2tikz or the source code. For your case in specific, have a look at interpretTickLabelsAsTex, parseStrings, parseStringsAsMath.
Hello,
I am generating a tikzpicture with following Code:
the generated lines for the xticklabels are: (Full Code attached)
Is there a way to tell matlab2tikz, not to interpret the text and exchange $ with \$ but just take it as is?
$...$ environment.
The compiled Picture looks like this:
For the Y-axis, math font is used, but as labels are often text, for the X-axis the normal text font style is used, why I tried with
So my original Problem is simply, that I dont want every ticklabel to be printed, but have it both in math font style.
I appreciate any help or workaround for this problem. Probably I am missing something as these are my first tries with this package.
Simon
testfig.txt
The text was updated successfully, but these errors were encountered: