Giter Site home page Giter Site logo

legends in subplots about matlab2tikz HOT 5 CLOSED

matlab2tikz avatar matlab2tikz commented on May 30, 2024
legends in subplots

from matlab2tikz.

Comments (5)

nschloe avatar nschloe commented on May 30, 2024

Hi,

yes, I think I'd noticed that before, too. This is a hard-to-fix issue I think as in the MATLAB(R) figures, there's no information about what plot a certain legend belongs to.

Would be glad about a fix here by anyone!

Cheers,
Nico

from matlab2tikz.

blubbafett avatar blubbafett commented on May 30, 2024

Don't know if someone has fixed this with intention or not, but I can inform that using MATLAB r2011a to generate the example in combination with the newest version of m2t, only the bottom subplot has a legend.

from matlab2tikz.

nschloe avatar nschloe commented on May 30, 2024

Seems good to me too. Closing.

from matlab2tikz.

jdv85 avatar jdv85 commented on May 30, 2024

The following code creates two subplots, both with legends:

subplot(2,1,1);
plot(1:10, 1:10, 'rx');
legend('test1');
subplot(2,1,2);
plot(1:10, 1:10, 'rx');
legend('test2')

I would expect m2t to save both legends, but only the bottom one shows up. Is it possible to fix this or would I need to save two figures?

from matlab2tikz.

nschloe avatar nschloe commented on May 30, 2024

Another attempt at fixing this by commit 15434ff.

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.