arohl / gdis

A visualization program for the display, manipulation, and analysis of isolated molecules and periodic structures
GNU General Public License v2.0
43 stars 17 forks source link

Graphs #18

Closed ovhpa closed 5 years ago

ovhpa commented 5 years ago

Dear Prof. Rohl,

Here is a summary of the changes for this pull request: 1- a new 2D-text system based on pango and markup (see here). I think that this way should be the default for all 2D (ie. non raster) text. 2- a simple tool for editing graph properties. There is some improvement to be made (like editing the property of only a selected point) but I'll make them at a later time. 3- a simple tool to export graphs/structures to eps files, with a fallback to png if eps is not available through cairo or pixbuf implementation.

Unfortunately, github doesn't allow to include eps image, so here are some corresponding png renders of the eps snapshots.

final_1 Fig. 1: A structure export. Note that the text in energy "-56.488000 eV", structure number "[1792:1793]", and selection mode "normal" are rendered using raster-based old print.

final_2 Fig. 2: A graph export with the new print system, allowing rotated text, and use of keywords such as big, small, sub, etc. The title of the graph is produced by the following markup: <big>Mo<sub>x</sub>B<sub>y</sub> structures per generation</big>

final_3 Fig. 3: Another graph export showing the line property change. Note that for now it is not possible to add a line on set containing all y values for a given x.

final_4 Fig. 4: Graph export showing the changes of y axis extremum values.