arjeneh / jpowder

Automatically exported from code.google.com/p/jpowder
1 stars 0 forks source link

3D plotting as function of Name. Y-axis ticks should be names #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When select to plot 3D as a function of filenames, as demonstrated in attached 
"select files for 3D plotting.png", currently the filenames are represented as 
0,1,2... tickmarks on the Y-axis, see attached "3D plot.png".

Change this so that the Y-axis tickmarks are the filenames.

Note this may mean that we can't continue to use the JFreeChart XYPlot 
functions, which may not allow this. 

Original issue reported on code.google.com by anders.m...@stfc.ac.uk on 8 Jul 2011 at 6:10

Attachments:

GoogleCodeExporter commented 9 years ago
Note this change should be made to SVN branch/Jpowder3D, not trunch/Jpowder. 

To recreate 3D plot.PNG. Open Jpowder from NetBeans 6.7.0-1, see 
http://code.google.com/p/jpowder/wiki/HowToCompileSource for how to 
get hold of this version of NetBeans. Then select the 3D Plots tab
and drag in all the files from the folder: \trunk\data\xye 3D 
dataset\chlorothiazide-dmf solvate.

A suggestion for implementing this is:

1) to change the 'meta' attribute of DataSet. Currently meta is stored as

    // holds meta data for the DataSet in pairs
    // of name of meta-data-item, e.g. temperature, and 
    // its value
    private HashMap<String,Double> meta;

This needs to be changed so that the meta data values
stored can also be String. Maybe use Java 'templates'?

2) Where the meta attribute is currently used is in FilesPlotter3D.java
in method createChart. It is used create the arguments for:

        renderer.setBlockHeight(widthsLow, widthsUpper);

When the meta-data value is Double block heights are adjusted 
according to what this values are. When the meta-data value is String
this block heights should be the same. 

Note because we want to display Strings rather than numbers on the
y-axis then this means we may not be able to use JFreeChart XYPlot 
when meta data is String

Original comment by anders.m...@stfc.ac.uk on 15 Jul 2011 at 7:28