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/
200 stars 35 forks source link

Option to set the BaseValue of a bar plot #277

Open pgf-tikz-bot opened 9 years ago

pgf-tikz-bot commented 9 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/43/ Author: ilusion Timestamp: 2015-01-04 21:12:22.991000

Normally, a bar plot consists of a rectangle draw between the base value (now fixed at 0) and the x/y coordinate of the data point. In some applications, it makes more sense to have a different base value (not 0) as in the figure below:

Example bar plot with non-zero basevalue

Work-arounds exists, e.g. at http://tex.stackexchange.com/questions/130362/histogram-plot-with-different-base-value-using-pgfplots but IMHO this is quite messy and would a lot cleaner if implemented in pgfplots (and shouldn't be hard, I think, but I'm not a TeX programmer).

See also: https://github.com/matlab2tikz/matlab2tikz/issues/438 which has some example plots to show what is meant by "BaseValue".

pgf-tikz-bot commented 9 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/43/#fe85 Author: cfeuersaenger Timestamp: 2015-01-21 19:45:27.585000

Thanks for the feature request! I have noted it in my todo list.

I suppose I will do it as part of a "bar plot v2" feature for one of the next releases.

The functionality as such is not too difficult, especially since pgfplots uses something like that internally anyway.

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/43/#3466 Author: mo-gul Timestamp: 2017-02-11 17:04:56.232000

Just moved the other stuff related to this feature request from the PGFPlotsToDo here.


Is it possible to have bar plots which do not start from the x or y axis?. For example a bar plot from (0,2) to (0,3).

http://tex.stackexchange.com/questions/161530/how-can-i-create-unbound-horizontal-bar-plots

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/43/#54f4 Author: cfeuersaenger Timestamp: 2017-03-25 06:40:03.286000