comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plot continuous line when have missing data points
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Plot continuous line when have missing data points [message #83359] Thu, 28 February 2013 13:34 Go to next message
morganlsilverman is currently offline  morganlsilverman
Messages: 46
Registered: February 2013
Member
Hello,

I'm trying to plot temperature profiles and am having a hard time because I have gaps of temperature data at certain altitudes. For example...
alt = [1833.68, NaN, 2443.28] and temp = [298.150, NaN, 291.650]. Because I'm trying to see the vertical profile I still want a solid line between these points even though there's a gap of data. I will see the gap by where the symbols are. Is there a way to do this or do I have to create a new array with continuous data points to get a line plotted? I've searched to see if anyone else has already asked this question but it seems like people want to leave gaps in the data their plotting if I'm reading the posts correctly.

Thanks for your help.
-Morgan
Re: Plot continuous line when have missing data points [message #83425 is a reply to message #83359] Fri, 01 March 2013 07:12 Go to previous message
tackmeister is currently offline  tackmeister
Messages: 5
Registered: March 2013
Junior Member
Op donderdag 28 februari 2013 22:34:49 UTC+1 schreef morganls...@gmail.com het volgende:
> Hello,
>
>
>
> I'm trying to plot temperature profiles and am having a hard time because I have gaps of temperature data at certain altitudes. For example...
>
> alt = [1833.68, NaN, 2443.28] and temp = [298.150, NaN, 291.650]. Because I'm trying to see the vertical profile I still want a solid line between these points even though there's a gap of data. I will see the gap by where the symbols are. Is there a way to do this or do I have to create a new array with continuous data points to get a line plotted? I've searched to see if anyone else has already asked this question but it seems like people want to leave gaps in the data their plotting if I'm reading the posts correctly.
>
>
>
> Thanks for your help.
>
> -Morgan

I think creating a new array would be the easiest way. What I would do is fit a line or other function to the data (linfit,gaussfit,mpfitfun,...) and then plot the fitted data as a line, and only plot the symbols of the original data on top of it using /overplot.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D array imaging with different colors
Next Topic: Re: Undocumented functions in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:05:49 PDT 2025

Total time taken to generate the page: 0.00590 seconds