Jump to content

Graph Fill Direction


mje

Recommended Posts

Please see the attached VI:

fill direction LV10.vi

If you execute the VI with the "Render Direction" set to Horizontal, you get a plot like so:

post-11742-0-14546900-1320163044_thumb.p

What we have here is a plot set to fill to zero. Works exactly as I'd like.

The problem is my application also requires that the plot be able to be rendered Vertical. So my application applies a simple transform to the data such that the axes get swapped, as shown in the VI. But when rendering data in this mode, the fill operation of course still fills vertically:

post-11742-0-58091700-1320163193_thumb.p

Correct me if I'm wrong, but there's no way to set the fill direction, is there?

Link to comment

You maybe able to hack a bit.

Use extra plots (two ?) with one filled to plus and the other to negative.

Only include values for the range where you want the fill.

Or you could insert an image into the plot and use the picture control to fill what you want. There is a shipping example that is a graph based on a picture.

So no ready built solution but there are possibilties.

Ben

Link to comment

Along the lines of what Ben suggested, I believe you can simply add a second plot with x=0 for all y values and simply use that plot as the fill baseline for the first plot. I'd do the similar thing for the horizontal rendering (y=0 for all x) so you do not have to futz with the fill baseline via property nodes and can always fill to plot 1.

Can't believe I never thought of that. Thanks, Darin.

post-11742-0-55310000-1320173755_thumb.p

fill direction LV10.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.