Comments (4)
how do i reproduce this? sample figure please! (as simple as possible) :)
from matlab2tikz.
I have the same issue. It is caused by ylim([]) if the maxima of the plotted data is outside the ylim() range. The line stroke is then 'cut' into several plots. There's a simple workaround: set the ylim range afterwards in the .tikz figure.
You can reproduce it with the attached matlab sample. The problem only exists if ylim < [1 1] as in the example.
%%%
figure(1)
x=0:0.01:2_pi;
plot(x,sin(x),'b',x,cos(x),'r')
xlim([0 2_pi])
ylim([-0.9 0.9])
Title('\text{tikz test}')
xlabel('\text{x-Values}')
ylabel('\text{y-Values}')
legend('\sin(x)','\cos(x)');
grid on
matlab2tikz('testplot.tikz')
from matlab2tikz.
The reason why the graph is split into several smaller ones is to avoid that data that is not visible isn't included in the file. There have been problems in the past where the TikZ files became rather large to the point where TeX would just give up compiling, all based on off-plot data.
I'll see if Pgfplots provides a better remedy there than to add several addplot's.
from matlab2tikz.
Fixed; will be part of next release.
from matlab2tikz.
Related Issues (20)
- matlab2tikz generates empty tikz-file when creating polarplot HOT 1
- xticklabel style: number format error
- Text from legendflex has vertical position offset HOT 3
- Can matlab2tikz convert bubblecharts to tikz? HOT 1
- workaround for warning "unknown legend location 'layout'" in tiledlayout
- GDX init failed: Could not load shared library libgdxdclib64.dylib: dlopen(libgdxdclib64.dylib, 2): image not found HOT 1
- Error in `formatPgfTickLabels` with loglog plots HOT 1
- matlab2tikz does not know how to handle object with type "implicitfunctionline"
- Error when using bodeplot HOT 1
- Support for sgtitle
- How to simulate audio signal using Uniform Linear Array using MATLAB HOT 1
- Diseño del cerpentin
- add support for plotting polygons? HOT 2
- minor grid style
- Append font style for axis labels
- Spikes in the Latex plot when using Cleanfigure HOT 2
- question about data out of the xlim or ylim
- IMD Grid Finding
- matlab HOT 1
- Levels in contourf HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matlab2tikz.