-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
sorry for the slow reply here. Issues 1 and 2 now fixed by #64, please check if this works from your end Issue 3 is more tricky, here a 10x10 pixel image has been interpolated to a larger pixel grid, by default this would be handled inside Cairo with a bilinear interpolation or similar, hence the blurring. So we'd need an additional setting to switch off the image interpolation and just plot 10 x 10 large pixels (i.e. tophat interpolation) |
… set the image interpolation algorithm; bump version to 1.5.0 due to incompatible interface
also now fixed issue 3, as this requires a backwards-incompatible change to the giza_render interface, have bumped version number to 1.5.0 Now, an extra argument "filter" is passed to the giza_render routines. When called from the PGPLOT interface the filter is set to GIZA_FILTER_NEAREST, which uses nearest neighbour interpolation, giving the desired behaviour. |
fix image blurring issue in PGPLOT interface #48
Thank you for your response. I can confirm that my first and third issues are fixed by your changes. The second issue is not fixed however it is fixed if I move the call of cairo_move_to after the call of _giza_stroke in giza-draw.c. I have a couple of other problems I am working on at the moment but I will open these as a new issue when I have them better defined. |
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.
xspector-issue-3.pdf
The text was updated successfully, but these errors were encountered: