bugfix for XY1DPlot getScreenPoints function

This commit is contained in:
wyq 2024-04-10 15:19:12 +08:00
parent 499b195969
commit 93b1f6b89f
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ public class XY1DPlot extends AbstractPlot2D {
} }
} else { } else {
for (int j = 0; j < len; j++) { for (int j = 0; j < len; j++) {
xy = this.projToScreen(xdata[j], ydata[j], area); xy = this.projToScreen(ydata[j], xdata[j], area);
points[j] = new PointF((float) xy[0], (float) xy[1]); points[j] = new PointF((float) xy[0], (float) xy[1]);
} }
} }

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MeteoInfo File="config.xml" Type="configurefile"> <MeteoInfo File="config.xml" Type="configurefile">
<Path OpenPath="D:\Temp\nc"/> <Path OpenPath="D:\Temp\grads"/>
<Font> <Font>
<TextFont FontName="YaHei Consolas Hybrid" FontSize="14"/> <TextFont FontName="YaHei Consolas Hybrid" FontSize="14"/>
<LegendFont FontName="宋体" FontSize="12"/> <LegendFont FontName="宋体" FontSize="12"/>