GPlotPanel
Aller à la navigation
Aller à la recherche
There is another higher level widget GPlotPanel] allowing to plot data stored in a file with the "Madona" or SQLite formats given format as described here.
Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give at least (for the "Madona" files):
* the prefix of the files you want to read * the suffix of the files you want to read * a comment giving a description of this kind of files * the maximum number of detached plot windows. If greater than 0 a "+" button wille be displayed in order to allow to display other plots in detached panels
Nevertheless, you have the possibility to specify which kind of files you will have to consider, adding an additionnal parameter:
- either GPlotDataMadonaReader]
- or GPlotDataSqliteReader]
In the following example, we will check for EPH_* files (no specific suffix).
GPlotPanel plots = new GPlotPanel("EPH", "", "Ephemeris file", 0, true);
...
public void display() throws GException {
put(plots);
}
}
This panel will then appear ...
After selecting a file ...
We may have something like that ...