Questions tagged [jmathplot]

From website "easy Java scientific plot for math engineering"

From website

Provides interactive 2D/3D plot (without openGL) :

  • 2D/3D scatter plot
  • 2D/3D line plot
  • 2D staircase plot
  • 2D/3D histogram plot
  • 2D/3D boxplot
  • 3D grid plot
  • 2D/3D quantiles on plots
14 questions
3
votes
2 answers

jmathplot doesn't work in swing application

I'm trying to use the jmathplot library in a swing application. Problem is, it doesn't seem to work when I add it to a JPanel as follows: // create your PlotPanel (you can use it as a JPanel) double[] x = new double[] { 0, 1, 2, 3, 4, 5 }; …
Jean-Paul
  • 19,910
  • 9
  • 62
  • 88
2
votes
2 answers

Plot update error - JMathPlot

I'm using the JMathPlot library to produce a simple graph, in this case it's a 3D which is updated for every iteration in the for loop. However, the speed in which it loops I'm getting: Exception in thread "AWT-EventQueue-0"…
ritchie888
  • 583
  • 3
  • 12
  • 27
2
votes
1 answer

JMathPlot what is the Maven dependency code please

Does anyone know the Maven dependency code for JMathPlot for eclipse jmathplot jmathplot 1.0 system
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
1
vote
1 answer

tf.keras.utils.image_dataset_from_directory - plotting error

tf.keras.utils.image_dataset_from_directory - A dataset of 20k images in two classes (directories) and creation of training and validation dataset works fine. But I can't use matplotlib.pyplot to plot the training dataset while plot of val_ds, the…
1
vote
1 answer

How do I plot countplots from two different dataframes side by side?

I have a training data set and test data set with the same categorical columns. Currently, I enumerate through the categorical columns for each data set to produce two sets of countplot subplots for each data set as…
Ncosgove
  • 55
  • 1
  • 5
1
vote
1 answer

Using a condition from file data to plot with matplotlib python

I have data in a file. It looks like this: 08:00,user1,1 08:10,user3,2 08:15,empty,0 .... How could I plot binary data with hours on x-axis and users on y-axis. Users will be denoted with different markers according to user. For example,…
Knowledge
  • 123
  • 6
1
vote
2 answers

python data structure: map>

Sorry for asking this newbie question. In C++, I can have something like this: map> m m["A1"].push_back(1); m["A1"].push_back(2); m["B3"].push_back(3); //etc The thing is that I wanna plot it out with mathplot. Each vector…
Anni_housie
  • 489
  • 1
  • 6
  • 12
1
vote
1 answer

I'm just starting with jmathplot and I got this exception message

I want to plot a graph in my application so I downloaded jmathplot.jar and added it to my project. When I add a field to my Frame: private PlotPanel plot = new Plot2DPanel(); I get a nasty long exception message at compile: Exception in thread…
Vlad K.
  • 320
  • 3
  • 19
0
votes
1 answer

How to resolve the following errors (about jmathpolt)?

I want to use packages such as jmathplot to draw function images, but after adding related packages, a problem that I can't solve is thrown. import javax.swing.*; import org.math.plot.*; public class Example { public static void main(String[]…
Leo
  • 113
  • 5
0
votes
1 answer

how to use jmathplot with java and maven?

I'm trying to plot a 3d surface using jmathplot. I currently have a java file that I run by using javac Plot.java java Plot Running the program returns 3 arrays corresponding to the x, y, and, z values of the graph. Where x[0], y[0], z[0] are the…
IVRafa
  • 45
  • 1
  • 7
0
votes
0 answers

Why is Plot2DPanel not reacting to its MouseListener's click event?

I learned recently how to switch between Jpanels in CardLayout. The code works fine but when I attempt to change one of jPanels to Plot2DPanel I get a strange behaviour at runtime. The Plot2DPanel isn't picking up its mouse click events. What have…
Vlad K.
  • 320
  • 3
  • 19
0
votes
1 answer

Draw a cube using GridPlot in JMathTools

I want to draw a cube using jMathPlot. The cube's points are: (0,0,1),(1,0,1),(1,1,1),(0,1,1),(0,0,2),(1,0,2),(1,1,2),(0,1,2) I have these variables: double[] x = {0,1,0,1}; double[] y = {0,1,0,1}; double[][] z1 = {{1,1,2,2}, …
0
votes
1 answer

Combining ScatterPlot using JMathPlot

Plot2DPanel plot = new Plot2DPanel(); Plot2DPanel plot1 = new Plot2DPanel(); plot.addScatterPlot("Error plot", Color.yellow, data1); plot1.addScatterPlot("Error plot", Color.GREEN, data2); // put the PlotPanel in a JFrame, as a JPanel JFrame frame =…
poonamsharma
  • 61
  • 1
  • 1
  • 7
0
votes
1 answer

jmathplot - rotating axis label misalign line plot

i'm using jmathplot to paint some line plots. Everything works fine for me, but when i'm rotating the axis labels, the plots will be misaligned. I already posted this issue here but no one answered yet. Any suggestions? SSCCE: import…
mjohannes
  • 21
  • 4