Not sure what you mean. On that site, I'm seeing horizontal, not vertical,
grid lines, every 0.15 units. Maybe you mean the X axis labels with the
weekdays?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(Did you draw those lines 'by hand'? I'm going to assume they are supposed to
be parallel to the Y axis and evenly spaced...)
The grid interval is 24 hours, the grid lines should be at midnight, and the
weekday labels are centered on noon each day, correct?
I can do that, but PHPlot wants to put the vertical grid lines at whole
intervals from the Y axis. - unless I can come up with a trick to shift them.
I need some more time to think about this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are 2 forum posts ("Always ensure axes cross at zero" and "request for
moving vertical grid lines") asking for missing capability that I think can be
solved with a single new feature.
Briefly, it would let us tell PHPlot "I want a tick mark here", and PHPlot
will adjust the calculations for the left-most or bottom-most tick mark so
that there will be tick mark there. The other tick marks slide accordingly,
keeping the same interval.
I already have something coded and it looks good, so unless it falls apart
with further testing, it will be in the next release.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First - I'd like to thank you guys for all the great help here.
Second - Is it possible to have moving vertical grid lines on plots like here:
chartbarometer.com
It would be nice to have vertical grid lines that separated the days and moved
across the plot as it is updated.
Not sure what you mean. On that site, I'm seeing horizontal, not vertical,
grid lines, every 0.15 units. Maybe you mean the X axis labels with the
weekdays?
Something like here: chartbarometer.com/gridlines.jpg
But the vertical lines would move from right to left as the chart was updated.
(Did you draw those lines 'by hand'? I'm going to assume they are supposed to
be parallel to the Y axis and evenly spaced...)
The grid interval is 24 hours, the grid lines should be at midnight, and the
weekday labels are centered on noon each day, correct?
I can do that, but PHPlot wants to put the vertical grid lines at whole
intervals from the Y axis. - unless I can come up with a trick to shift them.
I need some more time to think about this.
Yes I drew the lines by hand and yes they are suppose to be parallel to the Y
axis and evenly spaced.
And yes the tick marks on the X axis are at midnight with the day labels
centered between them.
Sure take your time, this is something I don't have to have just something
that would be nice.
The data I use looks like this:
,30.03
,30.05
,30.07
|,30.06
,30.08
,30.08
,30.09
,30.09
,30.13
,30.14
,30.16
,30.17
,30.17
,30.18
,30.22
Monday,30.27
,30.28
,30.30
,30.31
,30.31
,30.29
,30.29
,30.30
,30.30
,30.30
,30.31
,30.31
|,30.31
,30.30
,30.29
,30.29
,30.29
,30.29
,30.30
,30.30
,30.30
,30.31
,30.31
,30.30
Tuesday,30.29
,30.29
Sorry for the delay on this.
There are 2 forum posts ("Always ensure axes cross at zero" and "request for
moving vertical grid lines") asking for missing capability that I think can be
solved with a single new feature.
I wrote up a feature request for this.
Briefly, it would let us tell PHPlot "I want a tick mark here", and PHPlot
will adjust the calculations for the left-most or bottom-most tick mark so
that there will be tick mark there. The other tick marks slide accordingly,
keeping the same interval.
I already have something coded and it looks good, so unless it falls apart
with further testing, it will be in the next release.
OK thanks lbayuk. I guess In my case it just comes down to drawing a vertical
grid line when the x value equals a "|".