Skip to content

XYPlot with only one x/y value pair #314

Answered by trashgod
axkr asked this question in Q&A
Discussion options

You must be logged in to vote

I used the LogAxis example examined here and enabled renderer shapes as suggested here to get the chart pictured below:

series.add(1, Math.E);
…
//yAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
XYPlot plot = new XYPlot(new XYSeriesCollection(series),
    xAxis, yAxis, new XYLineAndShapeRenderer(true, true));

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@axkr
Comment options

Comment options

You must be logged in to vote
1 reply
@axkr
Comment options

Answer selected by axkr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants