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

Issues when testing the drop-in replacement for the fortran pgplot library #48

Open
xspector opened this issue Jan 5, 2024 · 0 comments

Comments

@xspector
Copy link

xspector commented Jan 5, 2024

I am investigating using giza as a drop-in replacement for pgplot in a large NASA software package (https://heasarc.gsfc.nasa.gov/docs/software/lheasoft/). I have run into three issues. Two of these I have solutions for, the third is more difficult.

  1. Center or right justified text are not plotted correctly. The problem here is the usual one of spaces at the end of the string not being handled correctly when going from Fortran to C. A simple fix is in giza-pgplot.f90 to replace call giza_ptext(X, Y, ANGLE, FJUST, TEXT) with call giza_ptext(X, Y, ANGLE, FJUST, TEXT(:LEN_TRIM(TEXT))).
  2. The giza version of PGDRAW does not update the current pen position. A simple fix in giza-pgplot.f90 is to add a call of PGMOVE immediately after the call to giza-draw. However, it might be better to fix the problem within giza-draw.
  3. Images are blurred. If I make eg a 10 pixel by 10 pixel image then the sharp edges between pixels are blurred out. I assume that this is something do with a cairo setting but I have been unable to find out how to turn it off. See example:
    xspector-issue-3.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant