I like to plot a line say f(x)=10*x on top of a contour plot

unset surface

set view 0,0

splot x**2+y**2

how can I do that?

Michiel

I am not sure of whether I have understood you correctly, but if you

want to plot a straight line (or any function) on a colour-coded plot

(by the way, what you show doesn't give you a contour plot), then I

would do the following

set table 'test.dat'

splot x*x+y*y

unset table

p 'test.dat' with image, 10*x w l

Since you set the view to 0,0, it's better to use plot with image, for

which you need the data file 'test.dat'.

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

2. Need to plot 2D color filled contour plot

3. 3d plot with multiple 2d plot contours

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

5. Contour Plot / Plot Range / Contour Scaling

6. plotting max value line on a contour plot

7. Label plot lines like a contour plot

8. merge contour plots and line plots

9. Can I generate a 2d line plot from a trisurf plot?

10. 2D scatter plot with density contour line,

11. How can contour plot without any contour lines?

12. Creating a plot with line plot and scatter plot in the same figure

13. How to plot contour with contour lines data

14. How to plot contour plot with random numbers

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

2 post • Page:**1** of **1**