Jump to content

How to change the color where the signal is out of the limits?


Recommended Posts

Hello,

I want to ask something. I’ve been trying to develop my report of graphs and I have some problems about changing colors. I have more than 10 graphs at my report in each page. For every graph I have limit lines. I want to change the color of the signal in graph where the signal is out of the limits. I uploaded an example picture. Could you please help me about this?

turkiye.jpg

post-24278-0-38938400-1305622248_thumb.p

Link to comment

A single plot can not have multiple colors for different datapoints.

I think the easiest way to achieve this is to use two plots, one colored for data within the limits and one for data outside of the limits.

You will have to split your data up into two sets of equal length where you put NaN's in the elements you don't want displayed for a certain plot.

Images say more than a thousand words, so here's an example:

post-906-0-11379600-1305643295_thumb.png post-906-0-48800000-1305643362_thumb.png

Btw. I think this topic is in the wrong forum, because it has nothing to do with scripting. Maybe one of the mods can move it?

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.