Xrockyman Posted August 7, 2008 Report Share Posted August 7, 2008 Dear users, It is possible, when using "XY Graph" to use two colours for the same plot? The objective is to have a colour from the beginning of the plot to the a certain point, after that specific point I want a different colour. I've searched in the property nodes but it is only possible to change the coulor of the intire plot. Another solution I experiment is to divide the plot in two and put "zeros" in the begining and end of each plot to give "sensation" of continuous plot with only the color changing, this allmost works but the changing point stays a bit "ugly" and this is not a solution.. Thanks in advance and sorry about of the long post:) Regards, Sylvain. Quote Link to comment
Antoine Chalons Posted August 7, 2008 Report Share Posted August 7, 2008 QUOTE (Xrockyman @ Aug 6 2008, 11:37 AM) Dear users,It is possible, when using "XY Graph" to use two colours for the same plot? The objective is to have a colour from the beginning of the plot to the a certain point, after that specific point I want a different colour. I've searched in the property nodes but it is only possible to change the coulor of the intire plot. Another solution I experiment is to divide the plot in two and put "zeros" in the begining and end of each plot to give "sensation" of continuous plot with only the color changing, this allmost works but the changing point stays a bit "ugly" and this is not a solution.. Thanks in advance and sorry about of the long post:) Regards, Sylvain. Hello, If you put "NaN" instead of zeros it will be slightly better because "NaN" are not plotted while "zeros" are. This solution isn't perfect... I know. Hope this helps a bit EDIT : have a look http://forums.ni.com/ni/board/message?board.id=170&message.id=345656&requireLogin=False' target="_blank">here Quote Link to comment
Xrockyman Posted August 7, 2008 Author Report Share Posted August 7, 2008 Thanks! With NaN "constant" the points are not plotted and I'm able to do "clean" join of the tow parts of the graph with different colours. Regards, Sylvain Quote Link to comment
Yair Posted August 7, 2008 Report Share Posted August 7, 2008 You can also just not plot those points. An XY graph does not require the different plots to have the same number of elements. 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.