Plotting things at the base of a contour plot

Plotting things at the base of a contour plot

Post by hh » Fri, 14 Nov 2008 14:27:42


I'm fairly new to gnuplot so I expect it's trivial, but I haven't been
able to figure out how to put things on top of a contour plot at the
base of a 3D surface plot. By "things" I mean arrows, data symbols,
text, or other objects, that allow me to point out special features on
the contour plot. (And related to that, how do I put data symbols
directly on some points of an otherwise smooth 3D surface?)

Of course, I can do all these things by manipulating the gnuplot output
(mostly postscript files in my case) with other software applications,
but I hope/expect it can be done directly within gnuplot.

Any help is much appreciated.


1. Plot contour plots on 2D planes of 3D plot

2. Contour Plot / Plot Range / Contour Scaling

Hello All,

I apologize if this has been previously answered, but I have searched
through the posts for about an hour and have not found an answer to
this question.

Here is my scenario:

I have a family of contour plots and I have a range of values (z) that
spans the entire family (z from 0 to 1). Some plots will have data in
the full range and some will have only a subset of the range (say from
0 to 0.3). My goal is to to have a consistent contour plot coloring
scheme across all my plots (e.g. 0.5 is yellow on all my plots). It
seems like this should be accomplished through PlotRange, but that is
not the case.

Here is a bit of example code demonstrating my problem (with some
bogus function)

(* For Group *)
ContourPlot[0.3 x y^3, {x, 0, 1}, {y, 0, 1},
ColorFunction -> "ThermometerColors",
PlotLabel -> "Temp Dist through slice 1", FrameLabel -> Automatic,
PlotRange -> {0, 1}, Contours -> 19,
ContourLabels -> True], {ColorData["ThermometerColors"][1 - #1] &,
19, "1", "0", LegendPosition -> {0.8, -0.4}}]

So the max value of the function within the range is 0.3. And the
PlotLabel shows values ranging from 0 to 0.3 as expected. Yet the
shaded contours are displaying dark red in the upper right corner,
which is the value associated with 1. I would expect (and have in vain
been trying to get Mathemetica to do this) the upper right contour to
be light blue.

I am using Mathematica (student edition if that matters)

Any help would be much appreciated! Thanks!!

3. plotting max value line on a contour plot

4. Label plot lines like a contour plot

5. Plotting 3D points on 2D-contour plots with colors indicating z values

6. AW: Plotting a contour plot with cylindrical co-ordinates

7. Adding a scatter plot to a contour plot

8. Need to plot 2D color filled contour plot

9. How to plot contour plot with random numbers

10. Plotting z against x and y (contour plot)

11. How does Mathematica create contour plots (or density plots)?

12. Matlab Contour Plot with Absolute Colors instead of relative per plot

13. plotting points over contour plot / graph transparency

14. Plotting A Region, and then Ploting a Contour Plot inside that Region

15. 3d plot with multiple 2d plot contours