This is the discussion forum for OxyPlot.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
+2

Changing axis scale

Rob Maher 10 років тому 0
Hi,

I am trying to use OxyPlot to show some data (*shock*).  My question is - how can the axis scale be changed once the data is plotted into it.

For example.  I use the following to create add the data to the graph

public void addDataToGraph()
{
plotModel1.Title = "Data";
linearAxis1.TickStyle = OxyPlot.Axes.TickStyle.Inside;
linearAxis1.IsPanEnabled = true;
linearAxis1.IsZoomEnabled = true;
plotModel1.Axes.Add(linearAxis1);

linearAxis2.Position = AxisPosition.Bottom;
linearAxis2.TickStyle = OxyPlot.Axes.TickStyle.Inside;
linearAxis2.IsPanEnabled = true;
linearAxis2.IsZoomEnabled = true;

plotModel1.Axes.Add(linearAxis2);

plotModel1.Series.Add(spectrum.OxyPlotDataSeries);
plot1.Model = plotModel1;
}

and I want something like

public void Rescale()
{
linearAxis1.Minimum = 100;
linearAxis1.Maximum = 3200;

linearAxis2.Minimum = 200;
linearAxis2.Maximum = 2000;
plot1.Refresh();
plot1.InvalidatePlot(true);

plot1.Model.InvalidatePlot(true);
}

But this doesn't seem to do anything.  What am I missing here?  Any suggestions?

Thanks for looking. 
+1

how to invisibility one plotview

future0723 6 років тому 0

hi, everybody.

Relation to the  Example:"Gridline cropping" ,the plotview was split to four parts,how can I invisibility one of the four?

thanks.

+1

Release date for stable version of Version 2.0.0

andreas glaubitz 7 років тому 0

Is there any known (estimated) release date for a stable Version 2.0.0

+1

Where is the example browser?

Connor Joseph Early 7 років тому 0

I've already looked here, but the link for the example browser doesn't work. 


I've also opened a solution in Visual Studio and I can't find the "ExampleBrowser" project in it, as the article would suggest.


What's the current state of these items?

+1

Oxyplot's performance boost via SharpDX not visible?

Ss Oi 8 років тому оновлено ShannonZ 7 років тому 2

Hi, what I did was to start two VS2015 projects, prepare the libraries ready using sources of master in GitHub, then add PlotView for each project seprately from Oxyplot SharpDX Wpf and Oxyplot Wpf. At last I used the same data for each of plots.


this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0,  100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0,  100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));

To my surprise, there is actually no performance gain at all (see. http://discussion.oxyplot.org/topics/733-direct3d-10-renderer-fork-of-oxyplot-ive-done-it/). Draging the axes is in both programs very slow approx. ~1 fps, or better to say with SharpDX.wpf there are more wrong behaviors, eg. parts of lines that out of axes are still to see, and edges of axes with SharpDX are not fully filled than in normal Oxyplot.


So can someone advise me what did I do wrong or miss?


Thank you indeed.




+1

Heatmap Series Realtime

Viraj Patel 8 років тому 0

I'm looking to create a heatmap series that adds data points in realtime. Does anyone have a working example using the heatmap series?

+1

overlapping of the multiple y aixs and multiple y axis titles.

ashok 8 років тому оновлено mike stedman 8 років тому 1

Hi, i am using the oxyplot-2014 lib.
i have to add 4 y axis in the right side of the graph and i plotted the axis in the graph.
Now all the y axis are overlapping with each others.

and all AxisTitles are overlapping. I tried the AxisTitleDistance, but it taking only one value with last drawn y Axis for the all y axis Titles and still are overlapping.

i am stuck. because rest of the project is completed. some one help me.

+1

syncronize x axes between two plots during panning/zooming

Mischa Vreeburg 9 років тому 0
I had a question about how to sync the displayed area and the axes between two plotmodels.
I want to be able to zoom / pan in one plot and have the other move and keep the x axis in sync.
How would I do this.
+1
Under review

Image exporters for headless environment

Francois Botha 9 років тому оновлений 9 років тому 4

I need to generate plots, save them to images and embed them in emails, all in a Windows service app, i.e. I have no dependencies on any UI libraries. I'd prefer to keep it that way and I don't want to reference Windows Forms, WPF or one of the other UI frameworks.


It should be possible to export to PNG by using just System.Windows.Drawing and package that all up as e.g. OxyPlot.Headless.

+1
Under review

Rectangle Annotation text wrap

Nick Heath 10 років тому оновлено anonymous 10 років тому 1
At the moment, if the text in a Rectangle Annotation (and I assume all other annotations) is larger than the bounds of the annotation, the text is simply truncated. Is there any way to force the text to wrap onto a new line?