i made a plot using pcolor and I want to overlay a second dataset on top of that using stem. when i make the stem plot, however, it has a white background that blocks out the contour plot. Is there a way to either get rid of the white background, or alternatively, to plot on top of a pcolor plot?

thanks

alex

Which version are you using? Can you give a brief demonstration of the problem?

I do not find the problem to occur in the following example:

z = rand(64,64); X = sort(rand(1,64)); Y = rand(1,64);

pcolor(X,Y,z); hold on; stem(X,Y)

The stem plot is not very readable in this case, but it -is- on top

of the pcolor() plot, and no extra white background is introduced.

Based on your description it almost sounds as if you forgot the

"hold on".

The example you gave also works for me. I suspect the problem may be that I have 2 sets of axes because I need to have a different y axis scale on the right for the stem plot. So to modify your example:

z = rand(64,64); X = sort(rand(1,64)); Y = rand(1,64);

pcolor(X,Y,z); ax1=gca;ax2=axes('YAxisLocation','Right');hold on; stem(X,Y)

z = rand(64,64); X = sort(rand(1,64)); Y = rand(1,64);

pcolor(X,Y,z); ax1=gca;ax2=axes('YAxisLocation','Right');hold on; stem(X,Y)

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

3. Contour Plot / Plot Range / Contour Scaling

4. Why is plotting points so much slower than plotting lines in Laview graph controls?

5. Interpretting plot of two vectors as "multiline plot" with just point each in each plot?

6. 3D plots : "points plot" / "nuage de points"

7. 3d plot with multiple 2d plot contours

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

9. plotting a 2D line on top of a contour plot

10. plotting max value line on a contour plot

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

12. Plotting things at the base of a contour plot

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

14. Label plot lines like a contour plot

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

3 post • Page:**1** of **1**