Menu

Moving vertical grid lines?

gt651
2011-05-08
2012-09-07
  • gt651

    gt651 - 2011-05-08

    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.

     
  • lbayuk

    lbayuk - 2011-05-08

    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?

     
  • gt651

    gt651 - 2011-05-08

    Something like here: chartbarometer.com/gridlines.jpg

    But the vertical lines would move from right to left as the chart was updated.

     
  • lbayuk

    lbayuk - 2011-05-08

    (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.

     
  • gt651

    gt651 - 2011-05-09

    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

     
  • lbayuk

    lbayuk - 2011-05-18

    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.

     
  • gt651

    gt651 - 2011-05-18

    OK thanks lbayuk. I guess In my case it just comes down to drawing a vertical
    grid line when the x value equals a "|".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.