pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
198 stars 34 forks source link

'after begin axis' style #254

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/20/ Author: sauert Timestamp: 2011-04-23 21:34:22

One thing I like a lot about pgfplots it its configurability with "meta styles". This allows to have consistently looking plots with only few code duplication. In this context the option 'before end axis' is very useful as it adds common code to all plots.

However, with 'before end axis' this code lies "in front of" all plots. I now need to add some (common) code to many plots right at the beginning, i.e., "between" grid and plots. An 'after begin axis' style would be very helpful here. In the attached minimal example I added a implementation proposal for such a style. Thanks for considering it.

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/20/#141d Author: sauert Timestamp: 2011-04-23 21:34:22

https://sourceforge.net/p/pgfplots/feature-requests/_discuss/thread/cf558bab/141d/attachment/testafterbeginaxis.tex Minimal example and proposal for solution

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/20/#e356 Author: ludewich Timestamp: 2011-04-28 19:14:15

I Bastian,

thanks for the feature request and the helpful solution approach! However, in this case, the pgfplots dev version already has such a feature: it now introduces keys 'execute at end axis' and 'execute at begin axis' which do what you asked for (although they are set with 'execute at begin axis=\dosomething' rather than the /.code approach).

Best regards

Christian

pgf-tikz-bot commented 13 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/20/#2223 Author: ludewich Timestamp: 2011-04-28 19:14:16