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

Signing of OxyPlot assemblies

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

objo wrote at 2013-10-22 19:44:

I just came across some posts about strong naming of NuGet assemblies.
My questions are:
  1. Should the OxyPlot assemblies be signed?
  2. Should they be delay signed only?
  3. Should the (public?) key file not be added to the repository?

tibel wrote at 2013-10-22 22:04:

1) Yes, I think there are some users (like me) that needs the strong-named version.

sukhsc wrote at 2014-01-04 10:26:

Hi - did anyone create a strong named version of oxyplot?

objo wrote at 2014-01-07 22:11:

OxyPlot is signed. I was asking these questions because I found some posts about the issues related to signing. I don't fully understand this, so please let me know if something should be improved!

WPF scatterseries with scatterpoint info displayed

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

steunissen wrote at 2012-02-07 07:27:

Hi,

I am creating a scatterplot which works fine. But I would like to display a label with each scatterpoint displaying additional information.

I am thinking of several possibilities :

1. creating a tracker which displays the desired info and somehow set the tracker to display always on each scatterpoint.

2. creating one scatterseries per scatterpoint and displaying the legend on the side. (the legend does not display near the point however)

3. creating a label like the barseries. But I guess this is not implemented.

 

Anyone any (other) suggestions ?


steunissen wrote at 2012-02-08 06:31:

Solved it by inheriting from scatterseries and scatterpoint, mixing some bareseries "label" code into it and it (almost) works...!


objo wrote at 2012-02-08 09:05:

I think #3 is the best solution to this! I am adding an issue "Add labels to LineSeries and ScatterSeries".

http://oxyplot.codeplex.com/workitem/9893

The labels could also be defined in one of the base classes, so we can add labels to all types of series.


ta wrote at 2012-10-22 16:46:

steunissen: I am looking for the exact same thing. Could I convince you to share the code you wrote? :)

Adding custom series to the main library

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

Gimly wrote at 2014-03-28 14:07:

Hi,

I was wondering what is the politic behind adding new series types to the main library?

I have created a "ScatterWithErrorBarSeries" that I use in my code. It's heavily inspired by the "CustomSeries" example in the example library but with some added functionalities.

I would be willing to add it to the list of available series in the main code, but don't want to "force" it to the main code without asking first.

What are your opinions? Should the number of built-in series be kept low and leaving people to create their own custom series, or should people be welcome to add other series types so that people can contribute to them?

objo wrote at 2014-03-28 15:23:

Sounds great! It is difficult to define rules, but it should be a series/annotation/axis of general interest. I think the scatter with error bars series could fall within this category. Is it supported in other plotting libraries? Please create some examples showing how to use it and submit a pull request!

Gimly wrote at 2014-03-31 10:32:

Actually, error bars in a lot of charting frameworks are available for line, scatter and bar plots. If you look at PyChart implementation for example, you'll see that the error bar itself has its own "class" and has different visualization possible. For example, it can show simple bars, just the min/max, or display quartile and min/max.

The implementation I made is way simpler for now, I just displays the error bar in the form of min/max representation.

I created a pull request for it.

One question though, I see that I didn't set my username on the commits I made... I have "Xavier" as username instead of Gimly. Is there an option to change this now that the commits are pushed? It's actually the same for the other pull requests I made earlier. It's a bit annoying since the commits are not linked to my username, but if it's too complicated to change, it's no big deal.

I know that GitHub deals with this very easily, but don't know about Codeplex.

Cheers.

Axis Titles Not showing up

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

DrStrangeLove wrote at 2014-03-13 16:29:

When I create a axis in xaml, and set the title, it is not appearing, I have the following simple code to set up my axis
<oxy:LinearAxis Position="Left" MajorGridlineThickness="2"  Title="Test Title"/>
This was working in the past but now the title does not appear anymore. I need the axis to have a title because it does not make sense without it.

Any help would be greatly appreciated.

objo wrote at 2014-03-13 23:42:

The default title color for the Wpf.LinearAxis was set to transparent. Should be fixed now! Thanks for the bug report!

Polar Chart - custom labels (wind directions)

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

SamTauris wrote at 2014-06-23 12:36:

Hello

My goal is to show the wind directions (North, East, South and West) on a Polar Chart.

How can I do this?


With kind regards,

objo wrote at 2014-06-27 13:40:

See the "Polar plots -> East/west directions" in the example browser.

SamTauris wrote at 2014-06-27 14:03:

Thanks objo!

Scatter Plot with 3 Axis, One a LinearColorAxis

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

erichpeterson wrote at 2014-04-05 00:02:

Hi,
i am wanting to create a plot which has three axes: 1. along the bottom of one scale (LinearAxis); 2. along the left side (LinearAxis) of another scale; and 3. along the right side (LinearColorAxis) as another scale.

I am able to get the first two and then by adding a ScatterSeries with x,y DataPoints display data. However, I am wanting to color the points based on some other value z using the color scheme of the LinearColorAxis.

Can someone help me with a simple example of this?

Thanks

Tracker Position

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

Nicothekrug wrote at 2013-02-15 11:32:

Hi,

Is there a way to force the tracker to be always above the selected DataPoint ? Because in Metro style apps, when the tracker displays under the selected point, I see... my finger instead ;)

objo wrote at 2013-02-15 14:51:

There is a Distance property on the tracker. I have not tested how it works, but it should be possible to use this to increase the distance of the tracker container from the point. See Source\Examples\WPF\WpfExamples\Examples\CustomTrackerDemo for examples (WPF) on how to customize the tracker.

Nicothekrug wrote at 2013-02-15 15:16:

Thanks for the quick reply.

Distance isn't what I need (already tested :-( ), because, depending on the tapped point location on the plot, the tracker is one time above (when close to the bottom of the chart), and an other time under (when close to the top of the chart) the selected DataPoint. I need the tracker always above the Datapoint, even if this makes the trackers goes out of the chart box. If this even possible ?

Nicothekrug wrote at 2013-02-15 15:59:

I can ask an equivalent question : is it possible to show the tracker partially outside the chart area ? I supposed that if the tracker is by default outside the chart area, it is move to a new place which is inside the chart area... Is it possible to disable that ?

objo wrote at 2013-02-17 08:45:

I added http://oxyplot.codeplex.com/workitem/10032
Writing a custom tracker control is the workaround until that issue is closed.

Regarding the second question - I don't know, I have not tested how ClipToBounds works on windows store apps

Nicothekrug wrote at 2013-02-18 08:25:

Thank you objo :)

2013.1.80.1 - Dont work with VS2012

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

ElToTo wrote at 2013-09-07 14:09:

Please help to fix that issue with compatibility for WindowsForm library.
That is what I am doing to add this library on ToolBox :
  • Right click in the toolbox
  • Select "Choose items..."
  • Press "Browse..." under ".NET framework components
  • Select the OxyPlot.WindowsForms.dll assembly (note that there are versions for both .NET 4.0 and .NET 4.5)
  • The "Plot" control should appear under "OxyPlot.WindowsForms Components" in the ToolBox
and I got a error like that :
There are no components in 'xxx\OxyPlot.WindowsForms.dll' that can be placed on the toolbox.

please help.
Johnny

0

Overflow exception when zooming in.

wl_joep 9 years ago updated 9 years ago 2

For some examples, when zooming in too much, an OverflowException occurs. This seems to have to do with rendering rectangles (GraphicsRenderContext.DrawRectangle). For an example, zoom in on the RectangleAnnotation examples.


StackTrace:

   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)   at System.Drawing.Graphics.FillRectangle(Brush brush, Single x, Single y, Single width, Single height)
   at OxyPlot.WindowsForms.GraphicsRenderContext.DrawRectangle(OxyRect rect, OxyColor fill, OxyColor stroke, Double thickness) in OxyPlot.WindowsForms\GraphicsRenderContext.cs:line 216
   at OxyPlot.RenderingExtensions.DrawClippedRectangle(IRenderContext rc, OxyRect clippingRectangle, OxyRect rect, OxyColor fill, OxyColor stroke, Double thickness) in OxyPlot\Rendering\RenderContext\RenderingExtensions.cs:line 366
   at OxyPlot.Annotations.RectangleAnnotation.Render(IRenderContext rc) in OxyPlot\Annotations\RectangleAnnotation.cs:line 84
   at OxyPlot.PlotModel.RenderAnnotations(IRenderContext rc, AnnotationLayer layer) in OxyPlot\PlotModel\PlotModel.Rendering.cs:line 347
   at OxyPlot.PlotModel.RenderOverride(IRenderContext rc, Double width, Double height) in OxyPlot\PlotModel\PlotModel.Rendering.cs:line 113

Line Series as a Gradient

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

Artiga wrote at 2013-09-26 16:01:

hello all!

I need a "gradient line series", i will pass as parameters, two colors and two points, the line will start in the first point with the color number one, and will finish at second point with the other color, but in the middle the color must change slowly, change as a gradient ....

I´m thinking in doing that using a lot of scatter points, and changing colors manually, but i don't think this is the best solution.

There another way to do that?

objo wrote at 2013-10-01 22:20:

You should create a custom series for this and override the Render method.
If you want to draw this as a line, you must call IRenderContext.DrawLine with many small line segments - each with a different color.
Use OxyColor.Interpolate to calculate the colors.