Re: contour with logarithmic axis [message #25395] |
Mon, 11 June 2001 02:22 |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Not sure if pvwave does this th esame way, but I suspect you need to use the
irregular keyword in IDL or perform a triangulation to the log of the x and y
axis in order to create something regular (linear) again before plotting.
Martin
Hilmar GUDMUNDSSON GL D21 2-4093 <hilmar@vaw.baug.ethz.ch> writes:
> --------------0F6472BF5FFA11C34C831ACA
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
>
> Thanks, but it must be something different. I have !x.style=1 &!y.style=1.
> BTW I'm using PV-WAVE 7.0.
>
> Hilmar
>
> David Fanning wrote:
>
>> Hilmar GUDMUNDSSON GL D21 2-4093 (hilmar@vaw.baug.ethz.ch) writes:
>>
>>> I'm having problems with contour using a logarithmic x axis. When
>>> I contour the data using
>>>
>>> CONTOUR, matrix, x,y, xrange = , yrange = [ymin,
>>> ymax], $
>>> xtitle = x_t, ytitle = y_t, max_value = 1000., level = levels,
>>> xtype=1
>>>
>>> the contour lines only appear on a part of the plot. Depending on the
>>> exact values of xmin and xmax, the fraction of the plotting area that is
>>> contoured changes in an erratic fashion. I can used alog10(matrix) and
>>> alog10(x), which produces a plot which is OK but I would rather like to
>>> stick to having the x axis logarithmic if possible.
>>>
>>> Has someone else run into this problem? Any solutions?
>>
>> You are running into IDL's very persistent aesthetic
>> sensibilities about what constitutes "nice-looking"
>> axes. You have to hit it upside of the head. Try
>> setting the XSTYLE and YSTYLE keywords to 1. :-)
>>
>> Cheers,
>>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting
>> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
>> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>> Toll-Free IDL Book Orders: 1-888-461-0155
>
> --
> G. Hilmar Gudmundsson
> Office: Home:
> VAW-ETH Zentrum Burstwiesenstrasse 21
> Gloriastrasse 37/39 CH-8606 Greifensee ZH
> Swiss Federal Institution of Technology Switzerland
> CH-8092 Z�rich
> Switzerland
> Phone: +41-1-632 40 93 +41-1-940 51 15, (m) 079 706 30 20
> Fax: +41-1-632 11 92
> E-mail: hilmar@vaw.baug.ethz.ch
> http://www.vaw.ethz.ch/vi/vaw_gz.vi_web/members/hilmar.html
>
>
>
> --------------0F6472BF5FFA11C34C831ACA
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
>
> <br>Thanks, but it must be something different. I have !x.style=1 &!y.style=1.
> BTW I'm using PV-WAVE 7.0.
> <p>Hilmar
> <p>David Fanning wrote:
> <blockquote TYPE=CITE>Hilmar GUDMUNDSSON GL D21 2-4093 (hilmar@vaw.baug.ethz.ch)
> writes:
> <p>> I'm having problems with contour using a logarithmic x axis.
> When
> <br>> I contour the data using
> <br>>
> <br>> CONTOUR, matrix, x,y, xrange
> = , yrange = [ymin,
> <br>> ymax], $
> <br>> xtitle = x_t, ytitle
> = y_t, max_value = 1000., level = levels,
> <br>> xtype=1
> <br>>
> <br>> the contour lines only appear on a part of the plot. Depending on
> the
> <br>> exact values of xmin and xmax, the fraction of the plotting area
> that is
> <br>> contoured changes in an erratic fashion. I can used alog10(matrix)
> and
> <br>> alog10(x), which produces a plot which is OK but I would rather
> like to
> <br>> stick to having the x axis logarithmic if possible.
> <br>>
> <br>> Has someone else run into this problem? Any solutions?
> <p>You are running into IDL's very persistent aesthetic
> <br>sensibilities about what constitutes "nice-looking"
> <br>axes. You have to hit it upside of the head. Try
> <br>setting the XSTYLE and YSTYLE keywords to 1. :-)
> <p>Cheers,
> <p>David
> <br>--
> <br>David Fanning, Ph.D.
> <br>Fanning Software Consulting
> <br>Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> <br>Coyote's Guide to IDL Programming: <a href="http://www.dfanning.com/">http://www.dfanning.com/</a>
> <br>Toll-Free IDL Book Orders: 1-888-461-0155</blockquote>
>
> <pre>--
> G. Hilmar Gudmundsson
> Office: &am p;nbsp; &am p;nbsp; &am p;nbsp; &am p;nbsp; &am p;nbsp; Home:
> VAW-ETH Zentrum &am p;nbsp; &am p;nbsp; &am p;nbsp; Burstwiesenstrasse 21
> Gloriastrasse 37/39 & nbsp; & nbsp; & nbsp; CH-8606 Greifensee ZH
> Swiss Federal Institution of Technology Switzerland
> CH-8092 Zürich & nbsp; & nbsp; & nbsp; & nbsp;
> Switzerland
> Phone: +41-1-632 40 93 &nbs p; &nbs p; &nbs p; +41-1-940 51 15, (m) 079 706 30 20
> Fax: +41-1-632 11 92
> E-mail: hilmar@vaw.baug.ethz.ch
> <A HREF="http://www.vaw.ethz.ch/vi/vaw_gz.vi_web/members/hilmar.html">http://www.vaw.ethz.ch/vi/vaw_gz.vi_web/members/hilmar.html</A></pre>
> </html>
>
> --------------0F6472BF5FFA11C34C831ACA--
>
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|
Re: contour with logarithmic axis [message #25413 is a reply to message #25395] |
Fri, 08 June 2001 08:52  |
Hilmar GUDMUNDSSON GL
Messages: 2 Registered: June 2001
|
Junior Member |
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>Thanks, but it must be something different. I have !x.style=1 &!y.style=1.
BTW I'm using PV-WAVE 7.0.
<p>Hilmar
<p>David Fanning wrote:
<blockquote TYPE=CITE>Hilmar GUDMUNDSSON GL D21 2-4093 (hilmar@vaw.baug.ethz.ch)
writes:
<p>> I'm having problems with contour using a logarithmic x axis.
When
<br>> I contour the data using
<br>>
<br>> CONTOUR, matrix, x,y, xrange
= [xmin, xmax], yrange = [ymin,
<br>> ymax], $
<br>> xtitle = x_t, ytitle
= y_t, max_value = 1000., level = levels,
<br>> xtype=1
<br>>
<br>> the contour lines only appear on a part of the plot. Depending on
the
<br>> exact values of xmin and xmax, the fraction of the plotting area
that is
<br>> contoured changes in an erratic fashion. I can used alog10(matrix)
and
<br>> alog10(x), which produces a plot which is OK but I would rather
like to
<br>> stick to having the x axis logarithmic if possible.
<br>>
<br>> Has someone else run into this problem? Any solutions?
<p>You are running into IDL's very persistent aesthetic
<br>sensibilities about what constitutes "nice-looking"
<br>axes. You have to hit it upside of the head. Try
<br>setting the XSTYLE and YSTYLE keywords to 1. :-)
<p>Cheers,
<p>David
<br>--
<br>David Fanning, Ph.D.
<br>Fanning Software Consulting
<br>Phone: 970-221-0438 E-Mail: davidf@dfanning.com
<br>Coyote's Guide to IDL Programming: <a href="http://www.dfanning.com/">http://www.dfanning.com/</a>
<br>Toll-Free IDL Book Orders: 1-888-461-0155</blockquote>
<pre>--
G. Hilmar Gudmundsson
Office: &am p;nbsp; &am p;nbsp; &am p;nbsp; &am p;nbsp; &am p;nbsp; Home:
VAW-ETH Zentrum &am p;nbsp; &am p;nbsp; &am p;nbsp; Burstwiesenstrasse 21
Gloriastrasse 37/39 & nbsp; & nbsp; & nbsp; CH-8606 Greifensee ZH
Swiss Federal Institution of Technology Switzerland
CH-8092 Zürich & nbsp; & nbsp; & nbsp; & nbsp;
Switzerland
Phone: +41-1-632 40 93 &nbs p; &nbs p; &nbs p; +41-1-940 51 15, (m) 079 706 30 20
Fax: +41-1-632 11 92
E-mail: hilmar@vaw.baug.ethz.ch
<A HREF="http://www.vaw.ethz.ch/vi/vaw_gz.vi_web/members/hilmar.html">http://www.vaw.ethz.ch/vi/vaw_gz.vi_web/members/hilmar.html</A></pre>
</html>
|
|
|
Re: contour with logarithmic axis [message #25414 is a reply to message #25413] |
Fri, 08 June 2001 08:29  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Hilmar GUDMUNDSSON GL D21 2-4093 (hilmar@vaw.baug.ethz.ch) writes:
> I'm having problems with contour using a logarithmic x axis. When
> I contour the data using
>
> CONTOUR, matrix, x,y, xrange = [xmin, xmax], yrange = [ymin,
> ymax], $
> xtitle = x_t, ytitle = y_t, max_value = 1000., level = levels,
> xtype=1
>
> the contour lines only appear on a part of the plot. Depending on the
> exact values of xmin and xmax, the fraction of the plotting area that is
> contoured changes in an erratic fashion. I can used alog10(matrix) and
> alog10(x), which produces a plot which is OK but I would rather like to
> stick to having the x axis logarithmic if possible.
>
> Has someone else run into this problem? Any solutions?
You are running into IDL's very persistent aesthetic
sensibilities about what constitutes "nice-looking"
axes. You have to hit it upside of the head. Try
setting the XSTYLE and YSTYLE keywords to 1. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|