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

Some strange figures when plotting in quad mode and k space #25

Closed
roentgenium opened this issue Nov 22, 2015 · 4 comments
Closed

Some strange figures when plotting in quad mode and k space #25

roentgenium opened this issue Nov 22, 2015 · 4 comments

Comments

@roentgenium
Copy link
Contributor

I am suffering of a tiny and strange figures when plotting XAS data in quad mode or k space.

My environment is
OS: Windows 7 64 bit
Athena: 0.9.24 (both of 32 bit and 64 bit)

For example, when I import a Ni foil XAS data file, the gnuplot automatically plots a graph like below.

gnuplot_quad

And, when I click the "k" button, the gnuplot shows the EXAFS oscillation with some garbage.

gnuplot_exafs

I tried to reinstall Demeter package both of 32 bit and 64 bit and delete the "demeter" directory in %APPDATA%, but ends with no joy.

I guess some part of gnuplot script is the cause, but I could not find it.
At least, a data file for gnuplot in the "stash" directory, "gp_*, looks fine.

@bruceravel
Copy link
Owner

My best guess: it's a font thing. I am trying to use this symbol in the math expression for the y-axis label using gnuplot's so-called enhanced syntax. This bit of text is generated here -- or possibly at line 173 (it's the {/267} thing). Reading the gnuplot manual, it seems this is not reliable when using a unicode encoding, which is likely given that your computer likely wants to display Japanese text.

Possibly the simplest solution is to edit this file on you computer and set line 8 to

set encoding iso_8859_1

Let me know if that works. If not, I have some other ideas.

@roentgenium
Copy link
Contributor Author

Yes. I am on Windows 7 Japanese edition.
I edited start.tmpl as indicated and it works!

@bruceravel
Copy link
Owner

Great! I don't recall why I chose

set encoding default

for that file. Seems best to set it to iso_8859_1.

bruceravel added a commit that referenced this issue Nov 24, 2015
bruceravel added a commit that referenced this issue Nov 24, 2015
@bruceravel
Copy link
Owner

even better is simply not to use the middle dot in the y-axis label of plots in k.

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

2 participants