narunlifescience / AlphaPlot

:chart_with_upwards_trend: Application for statistical analysis and data visualization which can generate different types of publication quality 2D and 3D plots with extensive visual customization.
http://alphaplot.sourceforge.net/
GNU General Public License v2.0
243 stars 37 forks source link

Bug fixes #21

Closed filipestevao closed 3 years ago

filipestevao commented 3 years ago

I'm using AlphaPlot and I noticed some weird behaviors.

Tested versions: 1.011 and with the last commit (b8ff430).

When the app loads an aproj file:

To reproduce this last point:

1) create a new table where the data starts with a number greater than 5, for example: type 6 for X and Y on row 1, type 7 for X and Y on row 2; 1) plot the 2d graph (line, scatter, bars, etc); 1) note that the X and Y axes obviously start at 6 and end at 7; 1) save in the AlphaPlot project format (aproj); 1) close and open the saved file; 1) note that the X and Y axes were automatically resized and now starts at 5 and ends at 7.

I made some changes to fix these behaviors when loading an aproj file (certainly the code I changed can be improved).

In addition, I have enabled autoformatting of the saved file. The advantage is that the file format is human-readable when opened in a text editor. It is also possible to do a better debug, as qDebug messages appear in line and column, while without formatting only the error column appears, since it contains a single line. The disadvantage is that the file is about 10 to 20% larger. However, I think the saved files are relatively small and it wouldn't make much difference.