chartpanel

Subscript in Axis description

我与影子孤独终老i 提交于 2019-11-28 13:50:55
I wanted to know if it is possible to use subscript in axis description. I have the following code XYItemRenderer lineYY = new StandardXYItemRenderer(); lineYY.setSeriesPaint(0, Color.BLUE); lineYY.setSeriesVisibleInLegend(0,false); final NumberAxis yaxY = new NumberAxis("ax [m/s²]"); yaxY.setRange(-11, 11); yaxY.setAutoRangeIncludesZero(false); XYPlot plotYY = new XYPlot(datasetY,null,yaxY, lineYY); plotYY.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT); Is there a way to subscript the x in the String "a x [m/s²]"? An subscript would be e.g. X₉ Using the approach shown here , you can specify

JFreeChart select an area without zooming

早过忘川 提交于 2019-11-27 15:12:24
问题 I recently started using JFreeChart and there is something i would like to do but i'm not sure if it's possible. My program is supposed to draw a spectrogram (a sound graph) from a wav file. So i managed to get the data from my wav file in a double arraylist and to display it in a chart. But now i would like to be able to select an area of my spectrogram (with the same tool used for zooming) without zooming and to be able to play only the selected part on my sound. But i simply can't find any

Subscript in Axis description

南笙酒味 提交于 2019-11-27 08:02:26
问题 I wanted to know if it is possible to use subscript in axis description. I have the following code XYItemRenderer lineYY = new StandardXYItemRenderer(); lineYY.setSeriesPaint(0, Color.BLUE); lineYY.setSeriesVisibleInLegend(0,false); final NumberAxis yaxY = new NumberAxis("ax [m/s²]"); yaxY.setRange(-11, 11); yaxY.setAutoRangeIncludesZero(false); XYPlot plotYY = new XYPlot(datasetY,null,yaxY, lineYY); plotYY.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT); Is there a way to subscript the x in

Adding ChartPanel to JTabbedPane using JPanel

半腔热情 提交于 2019-11-26 15:31:40
I want to add JFreeChart to JPanel and then add JPanel to JTabbedPane . I managed to display JFreeChart on JFrame , but I want to add JFreeChart as a 4th tab of JTabbedPane . Code to display Chart: public class Chart extends javax.swing.JPanel { private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { JPanel jPanel1 = new JPanel(); DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.setValue(60, "Marks", "Student 1"); dataset.setValue(40, "Marks", "Student 2"); dataset.setValue(90, "Marks", "Student 3"); dataset.setValue(50, "Marks", "Student 4"); dataset

Adding ChartPanel to JTabbedPane using JPanel

核能气质少年 提交于 2019-11-26 04:27:47
问题 I want to add JFreeChart to JPanel and then add JPanel to JTabbedPane . I managed to display JFreeChart on JFrame , but I want to add JFreeChart as a 4th tab of JTabbedPane . Code to display Chart: public class Chart extends javax.swing.JPanel { private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { JPanel jPanel1 = new JPanel(); DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.setValue(60, \"Marks\", \"Student 1\"); dataset.setValue(40, \"Marks\", \