gavalian / groot Goto Github PK
View Code? Open in Web Editor NEWJava Data Visualization project
Java Data Visualization project
Could you do something a little more sensible in dealing with negative values for log plots. Just assign some default color (gray) to values <= 0, instead of value=0 as done now. As currently configured, even if zmin is set >0 the histogram is rejected for containing a negative value. Another improvement would be to allow zmin to be fixed while zmax is allowed to autoscale.
Hello,
Is any way to change the color scale of H2F ?
How to save an histogram on a file, and reopened it inside a different code?
leads to increasing numbers of overlapping data sets in monitoring/calibration suites where the automatic refresh of EmbeddedCanvas is used
Request by @forcar
This will allow greater flexibility for users to specify stat box position and pad margins via the GUI or API.
Recent change of EmbeddedCanvas.update():
JFrame topFrame = (JFrame) SwingUtilities.getWindowAncestor(this);
topFrame.getContentPane().setVisible(false);
this.repaint();
topFrame.getContentPane().setVisible(true);
causes my various TextEntry fields in the topFrame to stop working if Timer if firing off repeated updates to refresh the canvas. I can always replace canvas.update() with canvas.repaint() to prevent this, but the above code doesn't look like something we want this class to do.
It would be useful to have H1F parameters such as number of entries, overflows and underflows saved when histograms are saved to a file
When trying to save histograms into a hipo file, one of them (and its directory) always disappears (the first directory created).
Minimal example:
(tested with coat-lib 4.0 from coatjava 5a13 and tested with coat-lib 5.1 from coatjava master on February 16)
TDirectory dir = new TDirectory();
H1F h1 = this.get1DHisto(plotName);
dir.mkdir("/calibration/PCAL");
dir.mkdir("/calibration/ECIN");
dir.cd("/calibration/ECIN");
dir.addDataSet(h1);
dir.cd("/calibration/PCAL");
dir.addDataSet(h1);
dir.writeFile("testfile.hipo");
TDirectory diread = new TDirectory();
diread.readFile("testfile.hipo");
diread.cd();
diread.ls();
Font size for the scaling factor doesn’t change with axis label font.
How to get the fit parameter uncertainties displayed in the stat box? I tried various setOptStat arguments but failed.
The TGCanvas has a button labeled "Save All" to save all the canvas tabs in the window, but it doesn't seem to actually save any of the canvases when you click on it.
Feature requested by Cole
Ability to save IDataSets similar to jroot. Requested by @forcar
Requested by nick
Great library. It would be good to export images to vector graphics
The freehep repository URL should be changed to https://... to avoid conflicts with recent maven versions that are blocking http repositories
Hello, I was wondering whether you could add a few plotting features for 2D histograms (no hurry) - what I'd like to plot are 2D simple 2D histograms by markers (not by the usual color scale), so to study the distribution of points and eventually compare several distributions superimposing more plots with different markers. It would be nice to be able to set a marker style, and select a color for each histogram.
It could also be helpful to plot the H2F object as "box" (which is already possible), but selecting a different color per histogram so to allow, again, a visually meaningful superimposition (I don't think this is possible as of now for H2Fs).
Thanks!
@wphelps would it be possible to save an entire DataGroup to a hipo file instead of saving the datasets one by one?
Cannot easily convert hipo to root files.
Hi @gavalian , @wphelps , This isn't urgent, but it would be nice to be able to make plots like this one: https://userweb.jlab.org/~nathanh/pip_5DaccPlot_scanPhih.gif
I've noticed that my H1F and GraphErrors titles do not show up in an EmbeddedCanvas.
Hi,
can you please add an option to link points of a GraphErrors with lines?
Thank you in advance
If this is supposed to be the "official" repository for the groot, used by the clas12-offline-software, it should be moved over to the jeffersonlab github so it can be worked on by everyone.
Could you please provide a license to the groot project?
Until then, I am not able to use your code.
Note: My preference would be MIT License, but please feel free to pick what makes sense for you.
EmbeddedCanvas produces an IndexOutOfBoundsException when drawing an empty histogram. Reported by Cole.
Three suggestions:
Replace ArrayList with synchronized list (avoiding thread collisions):
// ArrayList fitResults = new ArrayList();
List fitResults = Collections.synchronizedList(new ArrayList());
Remove progress code with Thread.sleep which was evidently intended to minimize thread collisions. This speeds up ParallelSliceFitter by at least x10.
fitResults are filled from slice threads and therefore not in ascending bin sequence. Resort:
fitResults.sort(Comparator.comparing(FitResults::getPoint));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.