Opened 7 years ago
Closed 7 years ago
#3612 closed defect (fixed)
g.gui.tplot: error when calling from terminal
Reported by: | veroandreo | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | g.gui.tplot | Cc: | |
CPU: | Unspecified | Platform: | Linux |
Description
When calling G7:g.gui.tplot from the terminal with:
g.gui.tplot strds=LST_Day_monthly_celsius cordinates=641428.783478,229901.400746
only to get the time series plot of that place, I get the following error:
Traceback (most recent call last): File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.gui.tplot", line 175, in <module> main() File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/scripts/g.gui.tplot", line 162, in main ylabel, csvfile, flags['h'], gscript .overwrite) File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/tplot/frame.py", line 1019, in SetDatasets self._redraw() File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/tplot/frame.py", line 899, in _redraw self._drawFigure() File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/tplot/frame.py", line 621, in _drawFigure self.drawR() File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/wxpython/tplot/frame.py", line 691, in drawR if self.csvpath: AttributeError: 'TplotFrame' object has no attribute 'csvpath'
However, if I run:
g.gui.tplot strds=LST_Day_monthly_celsius coordinates=641428.783478,229901.400746 csv=test.csv
then, it works. IMO csv
should be an optional parameter (i.e., to be used only if the user wants to export the values).
If using the GUI only, all goes fine.
I use trunk r73021 in Fedora 28.
Change History (2)
follow-up: 2 comment:1 by , 7 years ago
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Please try r73032.