[GRASS-dev] [GRASS GIS] #3612: g.gui.tplot: error when calling from terminal

#3612: g.gui.tplot: error when calling from terminal
-------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGUI | Version: svn-trunk
Keywords: g.gui.tplot | CPU: Unspecified
Platform: Linux |
-------------------------+-------------------------
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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3612&gt;
GRASS GIS <https://grass.osgeo.org>

#3612: g.gui.tplot: error when calling from terminal
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: g.gui.tplot
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by lucadelu):

Please try r73032.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3612#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3612: g.gui.tplot: error when calling from terminal
--------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone:
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: g.gui.tplot
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by veroandreo):

* status: new => closed
* resolution: => fixed

Comment:

Replying to [comment:1 lucadelu]:
> Please try r73032.

It works now, no errors. Thanks!

I close as fixed, since this is related to a new feature and IIUC it
should not be backported. Reopen if needed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3612#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>