I am trying to create a plot where I first create a surface plot, and then attempt to put a normal 2D plot on top of it so that they both occupy the same exact size. As an example, a script which partially achieves this is given below (it produces the screenshot shown at http://www.astro.lsa.umich.edu/~dmaitra/gnuplt1.png )
As you see the regions occupied by splot and plot are quite different. I can change the 'set origin' and 'set size' of the 'plot' and try to align them manually, but I was wondering if there is a more elegant (and more precise) way to to doing it.
, and hence I need both plots to occupy exactly the same position. If there is a better way to do this, that'd be great to know too.
Hi,
I am trying to create a plot where I first create a surface plot, and then attempt to put a normal 2D plot on top of it so that they both occupy the same exact size. As an example, a script which partially achieves this is given below (it produces the screenshot shown at http://www.astro.lsa.umich.edu/~dmaitra/gnuplt1.png )
As you see the regions occupied by splot and plot are quite different. I can change the 'set origin' and 'set size' of the 'plot' and try to align them manually, but I was wondering if there is a more elegant (and more precise) way to to doing it.
, and hence I need both plots to occupy exactly the same position. If there is a better way to do this, that'd be great to know too.
Regards
Dipankar
Why, oh why, do people always look to multiplot first, when it's not at all the right tool for the job?
What you need is an splot using more than one dataset, parametric mode and an extension of your 2D plot by a third, constant coordinate.
The suggestion works great! Thanks a lot for putting me on track …