[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SURFACE (and SHADE_SURF) do not play nicely with !p.multi #1521

Open
jtappin opened this issue Feb 22, 2023 · 2 comments
Open

SURFACE (and SHADE_SURF) do not play nicely with !p.multi #1521

jtappin opened this issue Feb 22, 2023 · 2 comments
Assignees
Labels
3D Graphics (T3D) known to be buggy bug Something isn't working

Comments

@jtappin
Copy link
jtappin commented Feb 22, 2023

Sorry, yet another 3-D plotting problem.

h = hanning(32,32)
window,xs=800,ys=400
!p.multi=[0,2,1]
surface,h
surface,h
window,xs=800,ys=800
!p.multi=[0,2,2]
surface,h
surface,h
surface,h
surface,h

From this is is clear that the plotting code is dividing up the X-Y plane into 2 or 4 sub windows rather than dividing the plotting area.
The two plot case
2 plot case
The four plot case
4 plot case
The results with shade_surf are the same.

@jtappin
Copy link
Author
jtappin commented Feb 23, 2023

I've done a little more digging around, and find that !p.region and !p.position behave in the same way as !p.multi for surface type plots.
Yet another awkwardness in relating IDL & PLPLOT coordinate systems (in the Fortran version of GRAFFER, I tend to find that breathing on code in that area is enough to break it)!

@GillesDuvert
Copy link
Contributor

Actually IDL is more subtle (!) than that.

IDL> !P.MULTI=[0,2,2]
IDL>for i=0,3 do surface, hanning(32,32)

gives
image
but

IDL> surfr
IDL> for i=0,3 do surface, hanning(32,32),/t3

gives
image
which is what GDL does in all cases (because it uses only one transformation matrix in the modified drivers.)
Obviously this was too clever on my part. 😄

@GillesDuvert GillesDuvert self-assigned this Feb 28, 2023
@GillesDuvert GillesDuvert added bug Something isn't working 3D Graphics (T3D) known to be buggy labels Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3D Graphics (T3D) known to be buggy bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants