bruceravel / demeter

Process and analyze X-ray Absorption Spectroscopy data using Feff and either Larch or Ifeffit.
http://bruceravel.github.io/demeter
Other
67 stars 32 forks source link

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

Closed roentgenium closed 9 years ago

roentgenium commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

bruceravel commented 9 years ago

Great! I don't recall why I chose

set encoding default

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

bruceravel commented 9 years ago

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