DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fill area under series depending on "Y" value

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
AlPhuket



Joined: 04 Dec 2009
Posts: 5

PostPosted: Fri Dec 04, 2009 2:00 am    Post subject: Fill area under series depending on "Y" value Reply with quote

I am working on plots of tidal currents and would like to be able to Fill the area under a graph of the current values depending on a chosen value (ie: when the current is flowing less than 0.4 meters per second). Given the power of the functions I see, there must be a way I am overlooking to accomplish this, and any help will be appreciated.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Dec 04, 2009 11:56 am    Post subject: Reply with quote

Like this?


If so, use Options>Fill Between Curves. In the "1st Curve" list select your flow curve. In the "2nd Curve" list select "Fill to Y reference line" and enter 0.4 in the "Fill to Yref=" box. Use the background color in the "Color" box, and some other color in the "Color Below Yref" box.

The catch is that the background color will be drawn in areas above Y=0.4, obscuring (by default) any grid lines. You can get around this with Options>Symbol Line Styles and selecting "above Fills" under "Grid line placement". That will also draw grid lines below your Y=0.4 line, though.

If instead you want the fill to be drawn below the curve but only for Y values < 0.4, the only way to do that is to make a copy of your curve for each area with Y values < 0.4, and clip all points outside that area, then again use Fill Between Curves for each of those areas.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Dec 04, 2009 7:00 pm    Post subject: Reply with quote

Not sure if this is what you have in mind or not, but I've added an option to the Fill Between Curves command to fill the area below a curve for all points less than or equal to some specified Y:



With any luck an update will be made available sometime this weekend.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AlPhuket



Joined: 04 Dec 2009
Posts: 5

PostPosted: Sat Dec 05, 2009 6:36 am    Post subject: Fill area under series depending on "Y" value Reply with quote

Thanks David, the second option is exactly what I need. With support like that, I'll be upgrading my trial to a registered version in a few minutes. Very Happy
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Dec 06, 2009 12:16 pm    Post subject: Reply with quote

Version 2.2.7.6 is now available and includes this change to the "Fill Between Curves" command.

For licensed users, mailing list mail with download instructions is being sent as I write this, or you can get the update using the "Check for Updates" command on the Help menu.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group