|
From: blender86 <j.m...@mb...> - 2010-07-22 13:33:09
|
I'm somewhat new to gnuplot and this combination has started to seem like an impossible task. The point is that a colormap under a vector field would denote the amplitude of each vector and that all the vectors would be the same length. I want to plot a colormap with splot "colormapdata" with pm3d and a vector field on top of that with plot "vectordata" using 1:2:3:4 with vectors so that the plots are exactly overlapping. Now I can make them both appear simultaneously with multiplot, but the cryptic coordinate system of gnuplot has driven my crazy trying to make the two plots overlap completely. Why is it that if I specify origin 0,0 size 0.5,0.5 for both plots, they are not on top of each other. I mean, it would be logical, but for some reason the origin and size just seem like they have no particular logic. -- View this message in context: http://old.nabble.com/Overlaying-a-vector-field-and-colormap-in-Gnuplot-tp29236735p29236735.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2010-07-23 07:30:35
|
2D ('plot') and 3D ('splot') use a completely different calculation of
margin widths, because in the 3D case, all axis tics and labels must
be visible regardless of the viewing angles, this requires space and
so the margins are larger in this case.
i assume that you are using 'set view map' (otherwise the 'plot ...
with vectors' would make sense), so the best would be to 'splot'
both graphs:
splot "colormapdata" with pm3d, "vectordata" using 1:2:(0):3:4:(0) with
vectors
replace the first '(0)' with a larger value if the vectors are covered
by the color map.
blender86 wrote:
>
> I'm somewhat new to gnuplot and this combination has started to seem like
> an impossible task.
> The point is that a colormap under a vector field would denote the
> amplitude of each vector and that
> all the vectors would be the same length.
>
> I want to plot a colormap with
>
> splot "colormapdata" with pm3d
>
> and a vector field on top of that with
>
> plot "vectordata" using 1:2:3:4 with vectors
>
> so that the plots are exactly overlapping.
>
> Now I can make them both appear simultaneously with multiplot, but the
> cryptic
> coordinate system of gnuplot has driven my crazy trying to make the two
> plots overlap completely.
>
> Why is it that if I specify
> origin 0,0
> size 0.5,0.5
> for both plots, they are not on top of each other. I mean, it would be
> logical, but for some reason the origin and size just seem like they have
> no particular logic.
>
--
View this message in context: http://old.nabble.com/Overlaying-a-vector-field-and-colormap-in-Gnuplot-tp29236735p29244688.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: blender86 <j.m...@mb...> - 2010-07-26 05:35:52
|
ok, didn't think of that. A bit of a hack, but it should work. Thanks.
Thomas Sefzick wrote:
>
> 2D ('plot') and 3D ('splot') use a completely different calculation of
> margin widths, because in the 3D case, all axis tics and labels must
> be visible regardless of the viewing angles, this requires space and
> so the margins are larger in this case.
>
> i assume that you are using 'set view map' (otherwise the 'plot ...
> with vectors' would make sense), so the best would be to 'splot'
> both graphs:
>
> splot "colormapdata" with pm3d, "vectordata" using 1:2:(0):3:4:(0) with
> vectors
>
> replace the first '(0)' with a larger value if the vectors are covered
> by the color map.
>
>
> blender86 wrote:
>>
>> I'm somewhat new to gnuplot and this combination has started to seem like
>> an impossible task.
>> The point is that a colormap under a vector field would denote the
>> amplitude of each vector and that
>> all the vectors would be the same length.
>>
>> I want to plot a colormap with
>>
>> splot "colormapdata" with pm3d
>>
>> and a vector field on top of that with
>>
>> plot "vectordata" using 1:2:3:4 with vectors
>>
>> so that the plots are exactly overlapping.
>>
>> Now I can make them both appear simultaneously with multiplot, but the
>> cryptic
>> coordinate system of gnuplot has driven my crazy trying to make the two
>> plots overlap completely.
>>
>> Why is it that if I specify
>> origin 0,0
>> size 0.5,0.5
>> for both plots, they are not on top of each other. I mean, it would be
>> logical, but for some reason the origin and size just seem like they have
>> no particular logic.
>>
>
>
--
View this message in context: http://old.nabble.com/Overlaying-a-vector-field-and-colormap-in-Gnuplot-tp29236735p29263499.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|