Questions tagged [matlab2tikz]

A tag for TikZ/pgfplots code generated by matlab2tikz.

Use this tag in addition to pgfplots to stress that your pgfplots code has been generated by matlab2tikz.

matlab2tikz as such is out-of-scope of this platform; it is unrelated to TeX.

A tag for TikZ/pgfplots code generated by matlab2tikz.

Use this tag in addition to pgfplots to stress that your pgfplots code has been generated by matlab2tikz.

This site can explain and assist in understanding, modifying, or maintaining the resulting TeX code (which should be tagged as pgfplots).

It is (in most cases) out of scope of this site to discuss the conversion procedure of matlab2tikz.

See https://github.com/matlab2tikz/matlab2tikz for discussion, bug-reports, or help for all that is directly related to matlab2tikz.

172 questions
3
votes
1 answer

A _standard_ way to use matlab2tikz output from a subfolder

In my tex project I use an ./images/xxx/ directory to save stuff generated by matlab2tikz. Sometimes matlab2tikz generates png's. When I try to "\include" the tikz file it fails to import those for an obvious reason - the tikz file contains the…
2
votes
1 answer

matlab2tikz not compiling

In the code generated by matlab2tikz, I am having a problem compiling the code. The error that I get is: ! Missing } inserted. } I am not seeing in the code where the error is. The brackets look correct. Can you…
Joe
  • 9,080
2
votes
0 answers

How to export plots with 2 y-axis into tikz with matlab2tikz

I want to export a Matlab figure with 2 y-axis to a tikz-plot with matlab2tikz. The figure is shown in the following picture. The blue plot belongs to the left y-axis and the 2 red plot belong to the right y-axis (Sorry, that there are not axis…
zufall
  • 21
2
votes
1 answer

Matlab2Tikz colorbar / colormap issues

I've got some issues using the matlab2tikz script by Nico Schlömer. In Matlab I created a 3d plot including a bunch of patches. Some scalar values are highlighted using the jet colormap (see the attached *.png file). I then translated this figure…
Johl
  • 21
2
votes
0 answers

what is the best way to export 3D plots in Latex

I'm using bar3 plots from Matlab but the problem is the plots in Latex are not the same as in Matlab
1
vote
0 answers

Problem in inserting a logarithmic plot by using the matlab2tikz function

I am using the matlab2tikz function for obtaining a .pgf file. The problem is that when I use this function for a “semilogy” plot of Matlab then in LaTeX it doesn't show any plot. If anyone has an idea, please share. \begin{axis} [%…
Waqas
  • 11
1
vote
3 answers

tikz+matlab2tikz

I'm quite new at latex, but finding it awesome. Yet when it comes to figures things do get a bit tiresome. I'm currently linking a big amount of matlab plots with latex articles with matlab2tikz. After downsampling the figures quite a lot, it…
Est
  • 81
0
votes
1 answer

matlab2tikz: Disable legend

I have a matlab code, creating a set of figures, which I want to export to Latex using matlab2tikz. Unfortunately I can't figure out how to export without a legend, using Matlab R2019b and matlab2tikz 1.0.0.0. I could remove the legendentries…
0
votes
2 answers

matlab2tikz with stepplot(): asymptote ruining scale

So, I use the following MATLAB code: sys1 = rss(3); sys2 = rss(3); h = stepplot(sys1,sys2); As an example of what I'm trying to do. This gives me the following plot of my step response (great): I generate the Tikz code using matlab2tikz, save it…
smollma
  • 311