Re: Further adventures in POLAR_CONTOUR [message #79411 is a reply to message #79409] |
Wed, 29 February 2012 08:47   |
John Coxon
Messages: 15 Registered: February 2012
|
Junior Member |
|
|
On 29/02/2012 14:13, David Fanning wrote:
> John Coxon writes:
>
>> However, since then, it has become apparent that it would be useful to
>> put the contours above some lines that denote the co-ordinate system,
>> and so I began to experiment with putting two separate contour plots on
>> top of those lines. (I now know, thanks to David, that /cell_fill
>> doesn't ruin my fills in the way I thought it did, so this has become
>> easier and more elegant within the last few minutes!)
>
> I have never had any luck "layering" filled contour plots.
> I think you have to create them all at once with the data
> you have. If your data truly goes from -1 to 1, I would
> have just created the levels and contour colors like this:
>
> levels = Findgen(10) * 0.2 - 1.0
> c_colors = Indgen(10)+1
>
> And called Polar_Contour once, with the FILL keyword set.
> That certainly works with the test data set I created and
> the colors you loaded.
>
> After you get your filled contours, you can overlay contour
> lines in various colors, etc. That should be pretty straightforward.
That's *exactly* what my code was doing before, and I don't think it can
do what I need it to do.
Imagine you plot the co-ordinate lines using PLOT or OPLOT and then use
the above levels/colours. POLAR_CONTOUR plots white as the
background/zero level, which obscures the lines completely.
Doing the reverse (plotting the POLAR_CONTOUR and then using OPLOT)
means that the lines are drawn over the fills, which means there are
grey lines going through each region of blue/red, which looks very messy
and inelegant.
As such, your suggested method doesn't allow for the plotting of the
co-ordinate lines (as far as I can tell), and so I've had to resort to
the method I posted here - but I am still curious as to why my original
method didn't work and I had to introduce the mentioned fix.
--
John Coxon
http://www.chickensinenvelopes.net/
|
|
|