Giter Club home page Giter Club logo

Comments (2)

nschloe avatar nschloe commented on May 20, 2024

I looked at the code and found a bug in moveCloser(); that's fixed now.
https://github.com/nschloe/matlab2tikz/commit/6fc70d9b504014e2de89df3fabd5d5d8709f8b43

The reason why the values don't appear as specified by MATLAB is that they are projected onto a bounding box around the axes; that way we can deal with far outliers, and is useful for lines plots. If the points aren't connected at all, this isn't necessary but it doesn't hurt either. Zooming of course doesn't work.

It may be useful to project the points onto a bounding box much larger than now, something around the TeX limits. I don't know what those are though, and they may even be machine-dependent.

from matlab2tikz.

nschloe avatar nschloe commented on May 20, 2024

Check out

x = [ -1.0e2, -1, -1,  -1.0e2, -10,  -0.5, 0.5, 10,    1.0e2, 1,   1,    1.0e2, 10,     0.5, -0.5, -10,   -1.0e2 ];
y = [ -10, -0.5,  0.5, 10,     1.0e2, 1,   1,   1.0e2, 10,    0.5, -0.5, -10,   -1.0e2, -1,  -1,   -1.0e2, -0.5 ];
plot( x, y,'o-');
axis( [-2,2,-2,2] );

from matlab2tikz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.