This is the discussion forum for OxyPlot.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
0
На рассмотрении

Can somebody tell me which design pattern(architecture) is used for example library, it looks really good.

Ganesh Jagdale 10 лет назад обновлен 10 лет назад 2

Scatter Series Broken in Today's Change Sets?

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

seveland12 wrote at 2012-04-25 21:40:

 

My simple graph, XAML pasted below, worked perfectly in source Change Set 8106a90e8feb released Friday. However, I have tried all three Change Sets that were released today, and my Scatter Series no longer draws at all with any of them. I'm assuming something broke during refactoring?



<oxy:Plot Name="mainPlot" Title="Try This" LegendOrientation="Horizontal" LegendPlacement="Outside" LegendPosition="TopCenter" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" >
            <oxy:Plot.Axes>
                <oxy:LinearAxis Name="yAxis" AbsoluteMinimum="0.0" Title="Load" Position="Left"  MajorGridlineStyle="Solid" MinorGridlineStyle="Solid" />
                <oxy:LinearAxis Name="xAxis" Title="Position" StartPosition="{Binding Path=reverseXAxisDirection, Mode=OneWay, Converter={StaticResource BooleanToAxisStartPositionConverter}, UpdateSourceTrigger=PropertyChanged}" EndPosition="{Binding Path=reverseXAxisDirection, Mode=OneWay, Converter={StaticResource BooleanToAxisEndPositionConverter}, UpdateSourceTrigger=PropertyChanged}" Position="Bottom" MajorGridlineStyle="Solid" MinorGridlineStyle="Solid" />
            </oxy:Plot.Axes>

            <oxy:Plot.Series>
                <oxy:LineSeries Title="Basis" Name="basisSeries" Color="MediumBlue" StrokeThickness="2" MarkerType="Circle" MarkerSize="3" MarkerFill="MediumBlue" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.basisPlot, UpdateSourceTrigger=PropertyChanged}"/>
                <oxy:LineSeries Title="Comparison" Name="comparisonSeries" Color="Maroon" StrokeThickness="2" MarkerType="Circle" MarkerSize="3" MarkerFill="Maroon" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.comparisonPlot, UpdateSourceTrigger=PropertyChanged}"/>

                <oxy:ScatterSeries Name="highlightedBasisPointsSeries" MarkerFill="Orange" MarkerType="Circle" MarkerSize="4" MarkerStroke="MediumBlue" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.highlightedBasisPointsPlot, UpdateSourceTrigger=PropertyChanged}" />
                <oxy:ScatterSeries Name="highlightedComparisonPointsSeries" MarkerFill="OliveDrab" MarkerType="Circle" MarkerSize="4" MarkerStroke="Maroon" DataFieldX="x" DataFieldY="y" ItemsSource="{Binding Path=plots.highlightedComparisonPointsPlot, UpdateSourceTrigger=PropertyChanged}" />
            </oxy:Plot.Series>
        </oxy:Plot>

objo wrote at 2012-04-25 22:05:

Thanks for the notice! I think this was a bug introduced when I changed the way data points are created from the ItemsSource collection. The default ScatterPoint constructor was not setting the Size property. It should be NaN, to get the point size from the parent ScatterSeries. Should be fixed now.

Change default X or Y axis

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

mika_z wrote at 2013-09-24 13:15:

Hello,

is it possible to change the default X or Y axis of the PlotModel? I have a situation where I have 2 Y-axes and 1 X-axis and it's possible to hide one or both of the Y-axes. When one is hidden, I would like to make it so that the mouse scrolling zoom would target the visible Y-axis.

ColumnSeries in OxyPlot.Wpf

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

vmesri wrote at 2012-11-13 09:45:

Hi,

First of all thanks for this fantastic project! I am trying to create a Chart with ColumnSeries. I assume I have to have reference the OxyPlot.Wpf.dll in my project. But the problem is that the class ColumnSeries does not exist in the this assembly! Instead it is in the OxyPlot.dll which does not work in a wpf project. Am I missing something here?

 

Many thank,

Vahid


vmesri wrote at 2012-11-13 10:35:

Sorry, Please ignore me! I realized that although the plot itself is from assembly OxyPlot.Wpf.dll, the PlotModel object which is bound to the Model property, is in OxyPlot.dll which contains all different types of series.

 

Thanks again for the very nice project!

Vahid


objo wrote at 2012-11-14 18:21:

I needed a WPF ColumnSeries myself, so that one is now implemented. The example is also updated.

How to keep up? Best practice of restoring Oxyplot Nuget packages through visual studio

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

David_NET wrote at 2013-12-10 10:49:

The Oxyplot Nuget is constantly being upgraded. I started learning a few weeks ago and it already has gone through a few updates. I started with only the binary references, but my old installed OxyPlot source codes keep becoming out-of-date. Now, I decided no longer to use Nuget but try to keep the latest Source codes. Furthermore, I have to keep deleting the references to the old binaries as the Nuget restoring to the new versions is often not reliable and I have to delete the references to the old version by deleting it from the project file so I can install the latest version from Nuget. And then I search the net, it seems that restoring from Nuget is a common topic and could be a problem for a rapidly developed library.

Anyone has similar issues keeping up?

For beginners of Oxyplot. It is an easy to use library. However, once you have tried a few cases, you realize there are so much more possibilities. It may be possible to hack out what you want brute force (if you are lucky), but doing it according to the design as it is intended will involve many months of serious studying the codes and how to do that in the best practice may even needs a separate and several threads of discussions.

3D and 4D plots - future?
3D also means 2D plus Time animation.
Anyone tries regularly combining oxyplot and helix3dtoolkit to get 3D or 4D? Anyone has plan to create a different codeplex project to do that. Please share so we can keep up with the evolution started here.

objo wrote at 2013-12-12 21:38:

Let me know if there is anything wrong with the NuGet packages, it should be possible to use the update packages functionality to keep up to date.
If you want to keep source files updated, use Mercurial pull & sync.

It could be an idea to create stable and alpha/beta channels, but I have not looked into how to set this up yet
http://docs.nuget.org/docs/reference/versioning#Prerelease_Versions

Documentation is on its way (including getting started sections), but contributions are needed here - it's a lot of work...

Sorry, there are no plans for 3D or 4D in this library. Must try to keep it simple.
There is a basic demo at https://helixtoolkit.codeplex.com/wikipage?title=SurfacePlotDemo, but I agree it would be interesting to see a more advanced project for these kinds of plots!

change line stype

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

Boyd wrote at 2014-02-07 19:30:

Hi,
The plotting algorithm takes two xy co-ordinates and draws a straight line between them.

What I need is the line to maintain the last y value from the old x to the new x then draw a line from the old y to the new y position.

I could do this myself by generating an in-between x-y point to the list, but is there a oxyplot line style to do this?

Boyd

Performance test

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

meenakshi07 wrote at 2013-04-23 03:45:

Hi Objo,

Can you please guide me
"Is there any Performance test application available which I can run on my chart application(WPF Application) similar to http://www.objo.net/oxyplot/histogram/ (Silverlight based)"?

Thanks in advance

Regards!

objo wrote at 2013-04-24 11:10:

There is no WPF version of that test application available, but I tried to calculate the rate of CompositionTarget.Render events in the WPF Example browser application. The result is probably not very accurate for performance measurements, so I am interested in better solutions to this!

The original Silverligth test application can be found in Colin Eberhardt's blog post:
http://www.scottlogic.co.uk/blog/colin/2010/12/visiblox-visifire-dynamicdatadisplay-charting-performance-comparison/

The OxyPlot code for Silverlight is in Source/Examples/Silverlight/HistogramTest

Colin's blog post from last year is interesting, I have not compared with those results yet
http://www.scottlogic.co.uk/blog/colin/2012/04/wpf-charting-performance-comparisons-the-battle-continues/
0
На рассмотрении

Double click on lineseries

xelk88 10 лет назад обновлен Oystein Bjorke 10 лет назад 1
Hi everyone!

I was wondering if there was a way to get some kind of behavior similar to the double click event on a lineseries.

Thanks in advance!
0
На рассмотрении

Which PDF export to use?

Thomas Ibel 10 лет назад обновлен Oystein Bjorke 10 лет назад 1
There is an OxyPlot.Pdf nuget package and the PDF export functions in the core library.
Which one should be used?

I think there should be one PDF export only. So remove the other please.

Help about "Touch on a LineSeries"

Oystein Bjorke 10 лет назад 0
This discussion was imported from CodePlex

XuZhe wrote at 2014-05-03 09:01:

I am new to OxyPlot

I get OxyPlot by Nuget with my Visual Studio 2012

and i found the example "Touch on a LineSeries" in example broswer,how can i found the source code about this sample?

i can not find any source files in downloaded zip file

Сервис поддержки клиентов работает на платформе UserEcho