hilbert00 Posted December 2, 2012 Report Share Posted December 2, 2012 Dear All! I need your help for something that I believe is not too much complicated but I couldn't find any work around. I need to display a graph and there are three regions that I would like to underline using a different background color, like the horizontal limit area shown in this but vertical! Do you have any advice? Thanks for your help. toto Quote Link to comment
mgunning Posted December 2, 2012 Report Share Posted December 2, 2012 One way to do this is to use the picture functions and the "Plot Images" property of the graph to draw rectangles of different colours on the graph. 1 Quote Link to comment
hilbert00 Posted December 15, 2012 Author Report Share Posted December 15, 2012 First of all thanks a lot! I didn't get any notification about your reply, that's why I'm coming so late to thanks you! Your solution is almost working perfectly, my last point is that this colored boxes are static, while I would like to have them linked to the value of the x axis. Say that the first box should go from x=0 and x=1 and so on. I've tried with the "Map XY to coords" but it looks like that the returned coords are in a different frame of reference respect to the height and width. Do you have any further advice? thanks a lot again! Quote Link to comment
hilbert00 Posted December 16, 2012 Author Report Share Posted December 16, 2012 yes, it's true the two are in different frame of reference... but thanks god my physics degree wasn't completely useless in the end and I make it! In the attached VI you just need to provide the two abscissa values (left and right) where you want to have the background color. Thanks mgunning for your input! Area On Plots.vi 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.