Giter Club home page Giter Club logo

Comments (4)

blubbafett avatar blubbafett commented on May 20, 2024

Just made a hack in the savToFile() function for testing;

m2t.content.children{1}.options = appendOptions( m2t.content.children{1}.options, m2t.currentHandles.pgfAxis.options );

Suggestions for improvement are welcome. :)

from matlab2tikz.

nschloe avatar nschloe commented on May 20, 2024

I don't understand the issue -- you wanna append something to the options of the current enviroment and it doesn't work?

from matlab2tikz.

blubbafett avatar blubbafett commented on May 20, 2024

I wanted to write some options under

\begin{axis}[%
*bla,
*bla,
*bla,
-new_bla,
-new_bla]coordinates{xxxxxxx}
\end{axis}

where *bla is written from the drawAxes() function and -new_bla from any other function. I.e. if I want to add the z-limits for a 3D plot, they have to be placed as options in the axis environment, and not as options in the surf environment (\addplot3[surf]) . However, I when in drawSurface() I couldn't find a way to directly access the axis environment instead of the surface which I was plotting; hence the hack I mentioned. But it works as it is now, but as mentioned, not the cleanest solution. Should be easy to fix once I understand how to append the new options directly to the axis environment (env.options in drawAxes()).

from matlab2tikz.

nschloe avatar nschloe commented on May 20, 2024

Ah okay. Well, that had worked before but broke at some point such that, for example, stacked bar plots (which need 'ybar stacked' in the containing axes environment) didn't work anymore.
I've tried to fix this now by providing m2t.currentAxesContainer of which you could access m2t.currentAxesContainer.options to append something there. Closing this for now, please reopen if necessary.

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.