|
From: Manfred S. <man...@gm...> - 2013-05-08 22:05:08
|
Hi Ethan,
Am 08.05.2013 18:17, schrieb Ethan Merritt:
> On Wednesday, May 08, 2013 05:33:22 am Manfred Schwarb wrote:
>> Hi,
>>
>> I tried to upgrade from gnuplot 4.4 to 4.6 and faced a new error
>> in my plot script:
>> "Tabular output of this 3D plot style not implemented"
>>
>> I read the release announcements but found no indication of some
>> pm3d behaviour changes, so I'm quite baffled. Also searching the
>> net did not reveal much useful information.
>>
>> So how is one supposed to use pm3d in gnuplot 4.6?
>
> Could you explain more clearly what you are trying to do?
Which part of the example below is not clear? One surface plot (2D map)
with contours, a second 2D map without surface but only contours,
and corresponding contour labels. But see below.
> So far as I know, it is not necessary to use tabular output for
> either pm3d or contour plots. Similarly the "set multiplot"
> command in your script seems unnecessary.
>
> The simple answer would be:
> reset
> set contour
> splot '$INFILE' with pm3d
>
Yes, this works perfectly if I have only one dataset and want to do
a 2D map with contours.
But I want to do two contour plots (2D map) in the same graph, one with colored
surface plus grey contours, the other one with black contours without surface plotting
using data from another source.
So this can't be issued in one single splot command.
Therefore you suggest to overlay multiple splot commands?
set multiplot
set contour
splot '$INFILE1' notitle with pm3d lc rgb "grey"
set view map
unset surface
splot '$INFILE2' notitle with lines lt -1
This works, but I somehow can't paint the lines black, the "lt -1"
seems ineffective (also lc rgb "grey" seems not to work).
But then I have still the problem with the contour labels.
I really have no idea how to produce them without using tables.
Please enlighten me.
The really strange thing is, this worked perfectly, but then
someone put in some "error: not implemented" statement.
How could this be not implemented, if it worked perfectly before?
Cheers,
Manfred
> Season to taste with your preferred pm3d or contour settings.
> If there is some particular combination of settings that
> causes a problem then maybe we can help with that.
>
> Ethan
>
>
>
>>
>> I'd like to to some 2D maps with contours on top of it. My script
>> looks roughly as follows:
>>
>>
>> set pm3d interpolate 40,40 implicit map
>> unset surface
>> set contour
>> set cntrparam bspline
>> set cntrparam levels auto 10
>> set table '$TMPCONT1'
>> splot '$INFILE1'
>> unset table
>>
>> set cntrparam levels auto 5
>> set table '$TMPCONT2'
>> splot '$INFILE2'
>> unset table
>>
>> # Change single blank lines to double blank lines
>> !awk "NF<2{printf\"\n\"}{print}" <$TMPCONT1 >$TMPCONT1_1
>> !awk "NF<2{printf\"\n\"}{print}" <$TMPCONT2 >$TMPCONT2_1
>>
>> reset
>> set multiplot
>>
>> set pm3d interpolate 40,40 explicit map
>> #---plot contour labels using Petr Mikulik's script:
>> !awk -f label_contours.awk -v nth=40 center=1 textcolor=1 inclt=0 $TMPCONT1 >$TMPGP
>> load '$TMPGP'
>>
>> splot '$INFILE2' notitle with pm3d, \
>> '$TMPCONT1_1' notitle with lines lt -1, \
>> '$TMPCONT2_1' notitle with lines lc rgb "gray70"
>>
>>
>> Thanks!
>> Manfred
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> gnuplot-beta mailing list
>> gnu...@li...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>>
>
|