bugfix for y reverse section plot in MeteoInfoMap

This commit is contained in:
wyq 2024-01-29 16:42:16 +08:00
parent 19189dfa4d
commit 7a2c7b7e63
3 changed files with 3 additions and 10 deletions

View File

@ -34,5 +34,5 @@
</Font>
<LookFeel DockWindowDecorated="true" LafDecorated="true" Name="FlatDarkLaf"/>
<Figure DoubleBuffering="true"/>
<Startup MainFormLocation="-7,0" MainFormSize="1366,770"/>
<Startup MainFormLocation="-7,0" MainFormSize="1433,849"/>
</MeteoInfo>

View File

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

View File

@ -1966,14 +1966,7 @@ public class FrmSectionPlot extends javax.swing.JFrame {
setXYCoords(_gridData);
if (this.jCheckBox_YReverse.isVisible() && this.jCheckBox_YReverse.isSelected()) {
double[][] aGD = (double[][]) _gridData.getData().clone();
int yn = _gridData.getYNum();
int xn = _gridData.getXNum();
for (int i = 0; i < yn; i++) {
for (int j = 0; j < xn; j++) {
_gridData.setValue(i, j, aGD[yn - i - 1][j]);
}
}
_gridData.yReverse();
}
if (!_useSameLegendScheme) {