The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
10k views

TeX capacity exceeded, sorry [main memory size=5000000] with matlab2tikz and reduce_plot

Yet another Tex Capacity exceeded error. I am generating a matlab scatter plot which without modification resulted in a 64.5 MB printed eps file. Using that plot directly in matlab2tikz resulted in a ...
2
votes
0answers
49 views

Why does a nan-only plot lead to an error when requesting a legend

Let me first admit that this may be a really dumb question. I am using matlab2tikz to export some figures from matlab. As I need some legend entries to be unrelated to my actual plots, I use nan-...
2
votes
0answers
41 views

second half of matlab area plot is missing after converting by matlab2tikz

I did an easy phase diagram using the area function in Matlab. I converted it into tikz by using the matlab2tikz function which generates following code: \documentclass[tikz]{standalone} \usepackage[...
2
votes
0answers
144 views

Wrong colormap when using matlab2tikz for 2D surface plot

I am currently using matlab2tikz, trying to import a Matlab surf plot, where I view only two-dimensions: I am using a custom colormap, but the error occurrs even with the standard colormap. The ...
2
votes
0answers
170 views

Nested tikzpicture using \node

I want to make comments onto a matlab2tikz figure. One way is to nest the matlab generated code using a \node inside a tikzpicture. However, when I do so, the axis labels and axis tick labels get "...
2
votes
0answers
205 views

Standalone tikz graphic with invisible Y-axis label

I want to compile a standalone tikz graphic using XelaTeX and include it in a larger document. The MWE shows the effect. When I do, the Y-axis labels disappear. The X-axis label remains. If I add a ...
2
votes
0answers
1k views

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 ...
2
votes
0answers
512 views

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
2
votes
0answers
3k views

externalize pfgplots fails with shell escape enabled (TexLive-2013 Mac)

I have the following Problem: I am using matlab2tikz to get my Matlab plots into latex. I have very large time series, that i already cut down using resampling. Nevertheless my I need a lot more time ...
1
vote
0answers
68 views

Unable to display tikz plot using externalize and matlab2tikz

I have a tikz picture I have converted from Matlab using matlab2tikz. I am attempting to use the tikz externalize feature as I have many plots to compile in a larger document. When I compile the ...
1
vote
0answers
234 views

PGFPlots: PNG has wrong rotation in .tex after matlab2tikz export

I got a problem, which I am somehow not able to solve for days. I created a graph in Matlab and wanted to import it in my LaTeX document. This is my MATLAB Code. figure(); subplot(2,1,1); L_input = ...
1
vote
0answers
183 views

Out of memory for large scatter plot in tikz

I have exported four Matlab plots with matlab2tikz to tikz. Each plot has 10000 scatter points. When I try to use it in LaTeX I'm getting an out of memory error. I have also converted the figures to ...
1
vote
0answers
152 views

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 ...
1
vote
0answers
411 views

Lines plotted in front of others, though they should behind in a 3d plot

After converting a figure to TeX using matlab2tikz, I figured there's a little problem. The figure consists of many lines, but there are two different sets of lines a cloud set, forming a stream and ...
1
vote
0answers
728 views

matlab2tikz/pgfplots adding colorbar afterwards

I am currently using both matlab2tikz and pgfplots with external graphics since I am not completely convinced by either yet. Is it possible to add a colorbar with any of the two afterwards (meaning ...
0
votes
0answers
29 views

Python equivalent of matlabfrag

I have been a regular user of matlab for plotting. I use matlabfrag to save as eps for the plot along with a tex file containing labels. This can be rendered with Latex fonts after including them in ...
0
votes
0answers
49 views

Color interpolation (shader) does not work when using Matlab2tikz

I am trying to improve the quality of my plots in MATLAB and so I used Matlab2tikz to transform the MATLAB plots in pgfplots. I want to perform a color interpolation but this does not work and after ...
0
votes
0answers
56 views

Matlab2tikz // Error divsion by 0.0

I created a minimal working example in Matlab: [x,y] = meshgrid(-2:0.1:2,-2:0.1:2); fx = x.*y; fy = x.*y; figure quiver(x,y,fx,fy) matlab2tikz('plot.tex'); This works great and creates the plot....
0
votes
0answers
147 views

matlab2tikz: Generated file is several MB due to resolution

I am exporting a surface-plot in Matlab to tikz using matlab2tikz, a mwe of the figure is here: stp = 0.001; [xx yy] = meshgrid(0:stp:1, 0:stp:1); surf(xx, yy, zeros(size(xx)), sin(xx), 'EdgeColor', '...