I am looking to make a floating column style chart in Gnuplot, but I'm not having much luck. Here is a brief mock up of what I am trying to achieve:
This can easily be made with bars that start from y=0 , using newhistogram etc, but I can't seem to find an easy way to plot between two y values. There could be some complex workaround using stack histograms, but it all gets out of hand quick.
How difficult would this be to implement, either as an option or further plot style? Or is this opening a can of worms?
Cheers,
Thomas
edit:
Looking in graphics.c, there does seem to be a value for ylow, perhaps this could be changed to be read from another column from the data file?
Last edit: Thomas Leonard 2015-10-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can probably get what you want using the existing plot style "with boxxy".
Here's an example using the data file 'silver.dat' from the demo collection.
The "boxxy" column usage is:
x y xlow xhigh ylow yhigh color
The nominal x and y are not relevant to this example, since we will fill the box
xlow/xhigh/ylow/yhigh. Furthermore we will use the line number in the file as the xlow coordinate (column 0).
set style fill solid
plot 'silver.dat' using 0:2:0:($0+0.5):3:2:0 with boxxy lc variable
Thanks for the suggestions guys - I had looked at box plots, but would never have thought of box error bars!
I needed a few workarounds to get the final result I wanted , but I have a number of identical graphs to make so I will definitely get use from the work put in.
Cheers!
Last edit: Thomas Leonard 2015-10-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2016-02-01
Oh cool, I'm gonna have to get in on this
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all!
I am looking to make a floating column style chart in Gnuplot, but I'm not having much luck. Here is a brief mock up of what I am trying to achieve:
This can easily be made with bars that start from y=0 , using newhistogram etc, but I can't seem to find an easy way to plot between two y values. There could be some complex workaround using stack histograms, but it all gets out of hand quick.
How difficult would this be to implement, either as an option or further plot style? Or is this opening a can of worms?
Cheers,
Thomas
edit:
Looking in
graphics.c
, there does seem to be a value forylow
, perhaps this could be changed to be read from another column from the data file?Last edit: Thomas Leonard 2015-10-09
I think your best option is the
boxxyerrorbars
plotting style.You can probably get what you want using the existing plot style "with boxxy".
Here's an example using the data file 'silver.dat' from the demo collection.
The "boxxy" column usage is:
The nominal x and y are not relevant to this example, since we will fill the box
xlow/xhigh/ylow/yhigh. Furthermore we will use the line number in the file as the xlow coordinate (column 0).
Thanks for the suggestions guys - I had looked at box plots, but would never have thought of box error bars!
I needed a few workarounds to get the final result I wanted , but I have a number of identical graphs to make so I will definitely get use from the work put in.
Cheers!
Last edit: Thomas Leonard 2015-10-12
Oh cool, I'm gonna have to get in on this