Comments (4)
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.
I don't understand the issue -- you wanna append something to the options of the current enviroment and it doesn't work?
from matlab2tikz.
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.
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)
- matlab2tikz generates empty tikz-file when creating polarplot
- 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
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.