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

Fixes #5 Symbol issues #16

Merged
merged 11 commits into from
Nov 8, 2018
Merged

Conversation

haavee
Copy link
Contributor

@haavee haavee commented Nov 8, 2018

This is an attempt at resolving the symbol issues raised in @karlgrazebrook's Issue.

I attach a screenshot of how pgdemo2, 2nd screen renders on my system. Compare to the differences shown here.

I think that there are a few other symbols that could do with a bit of scaling up - but let's check these ones first.

screen shot 2018-11-08 at 15 40 28

Due to my misunderstanding of _exactly_ how to use `printf()`'s [parameter
field](https://en.wikipedia.org/wiki/Printf_format_string#Parameter_field),
then under some PGTBOX(...) settings and with certain time axis range, the
'sprintf(...)' would trigger an `__libc_fatal(...)` - terminating the user's
application.

The fatal error was only triggered if DAY number was to be displayed and DAY
number was non-negative.

By a simple permutation of the calling arguments and the parameter field(s)
in the format strings this should not happen anymore.
The triangles 7, 13 were pointing the wrong way and symbol 15 is the star of
David formed by overplotting two open triangles offset a little bit
Symbols 12 and 18 now are five-point stars, open and filled.
Symbol 20 was entered as seven-point star but it should be a small open
circle. Already changed it from _giza_star() => _giza_circle() but symbols
20-27 are a bit off anyway, so that's going to be fixed in a different
commit.
The open circles are now exponentially scaled and drawn with a slightly
thinner line than before
Symbol danieljprice#19 was not a hexagon with a cross but a larger open square than danieljprice#6.
The squares are also drawn with a slightly thinner line.
The arrows looked markedly smaller in giza than on the PGPLOT original.
Scaled them up a bit.
They came out (noticeably) smaller in giza than in PGPLOT as far as I could
tell.
@danieljprice
Copy link
Owner

image

image from Karl

@danieljprice danieljprice merged commit 61c3f8c into danieljprice:master Nov 8, 2018
@danieljprice
Copy link
Owner

all looks good to me

@karlglazebrook
Copy link

karlglazebrook commented Nov 15, 2018 via email

@haavee haavee deleted the symbol-issues branch July 26, 2022 15:03
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

Successfully merging this pull request may close these issues.

3 participants