Annotation Label Bug
Hy. I 'm using annotations and the problem is that the labels are geting out from the plot area . There is a solution to that?
that must be a bug. I add it to the issue tracker, will correct it later when I get time!
Electric Power factor Chart
chirstianbobsin wrote at 2012-05-14 23:29:
Hi Objo,
I have a strange question.
Can I plot a chart that 4th quadrant ranges from -0.001 to 1 and the 1st quadrant ranges from 0.001 to 1? to produce a chart like this sketch with oxyplot?
We are doing an electrical engineering chart of power factor measurement. And the chart must be Like this.
^ 0.0| | | 0.5| | | 1.0|-------------------------------------------> | | -0.5| | | 0.0|
objo wrote at 2012-05-15 06:07:
That's a special case not supported by the LinearAxis.
You have to make a custom axis yourself to do this. Look at the LinearAxis implementation, maybe you can just override some of the methods of the LinearAxis class. Let me know if I should make more methods virtual.
chirstianbobsin wrote at 2012-05-15 13:07:
Ok I'll look for this. I asked only to know if possible. I think only in July or August we'll do something like this.
bsguedes wrote at 2012-11-14 10:24:
Just for information, I achieved to do this graph by extending LinearAxis and overriding method 'virtual string FormatValue (double x)'. By doing this way the axis will show the values you want by modifying the value passed to base.FormatValue(x). It requires recalculating some values, though (for instance, I've chosen to convert values in the range shown in the desired chart to -1 to 1).
It is also necessary to change values shown by the tracker, for this I created PFSeries which extends LineSeries, and whose GetNearestPoint method is overridden in order to return a PFTracker (which extends TrackerHitResult).
objo wrote at 2012-11-14 18:27:
One more idea... try to create two vertical axes:
The first: Minimum=0.001, Maximum=1, StartPosition=1.0, EndPosition=0.5
The second: Minimum=-0.0001, Maximum=1, StartPosition=0, EndPosition=0.5
Then add one series for the data in the 4th quadrant, and one series for the data in the 1st quadrant.
(I have not tested this...)
bsguedes wrote at 2012-11-19 17:45:
I've tried this but with two axes zoom is no longer synchronized between quadrants, and you would need to add two series actually, instead of one (one series for the upper chart and another for the lower one).
Get actual MinorStep (or any grid-related values)
tboloo wrote at 2013-05-04 20:25:
I am trying to create plot containing both Carthesian and Polar grid. For the first one I use regular Major- nad MinorGridLines, whereas for the second one I intended to use EllipseAnnotations. Now everyting would be fine, if only I could get the actual Major- or MinorStep, the problem is that both are either zero or NaN. Any hints on what can I do?
Regards,
Bolek
objo wrote at 2013-05-06 10:33:
ActualMajorStep
/ActualMinorStep
properties are set when the plot is being updated/redrawn. The values of these properties depends on the width/height of the plot.Highlight particular point
amity2001 wrote at 2012-10-18 08:29:
Hello World!
I am looking for highlighting peaks in the series with different color. I have set of points in which some points are peaks.
With line series I plotted the set of points without any marker symbol. Now I want to highlight peak points only.
Is it possible to highlight any particular point on the series with different color or shape?
Thanks in advance.
objo wrote at 2012-10-18 09:02:
In the LineSeries all markers have the same size and color.
Could you use a ScatterSeries for the markers? Then you could set the color or size for each peak marker. I have not tried this myself...
amity2001 wrote at 2012-10-18 09:26:
In the LineSeries all markers have the same size and color.
Hi objo,
Thanks for reply.
Line series is OK for me to plot graph.
If I set marker to line series the control shows ALL points in the form of markers while I want to show only SOME points as markers (Peaks in series)
Would you please explain how it can be achieve?
Thanks in advance.
objo wrote at 2012-10-18 10:19:
Try a ScatterSeries or an extra LineSeries (with line thickness = 0) for the peak points.
How can I draw a line series against the Y axis?
willmoore88 wrote at 2013-07-18 16:05:
http://www.intechopen.com/source/html/16221/media/image7.png
Any ideas?
everytimer wrote at 2013-07-18 17:41:
foreach (DataPoint p in myList1)
{
myList2.Add(new DataPoint(p.Y, p.X);
}
Good luckLabels overlapping each other in column chart if the values are too low
WiseDeveloper wrote at 2014-01-15 19:08:
Please help with solution or workaround.
objo wrote at 2014-01-27 19:43:
If the height of the rectangle is less than the height of the label text, the labels could be hidden.
Moving the labels so they don´t overlap is probably much harder.
I created an issue: https://oxyplot.codeplex.com/workitem/10123
WiseDeveloper wrote at 2014-01-30 06:57:
Save Plot to image
tboloo wrote at 2013-10-09 15:16:
I am trying to create a report which is supposed to include plot graphics and data (from other views in the application). Now I have checked the documentation and forums, and it seems that there is no ToImage() method in OxyPlot.WPF, neither there are SaveBitmap, ToBitmap methods mentioned in elswwhere, only ToCode and ToSVG which are of no use in my scenario. So my question is is there a simple, or relatively simple, way to get the plot as image?
Regards,
Bolek.
willmoore88 wrote at 2013-10-10 12:36:
tboloo wrote at 2013-10-10 13:39:
System.Windows.Input.ApplicationCommands.Copy.Execute(null, PlotModel);
as PlotModel is not of IInputElement type.Gimly wrote at 2013-10-11 17:04:
PngExporter
?Usage example:
PngExporter.Export(this.PlotModel, stream, 800, 600);
You can also use
BitmapSource bitmap = PngExporter.ExportToBitmap(this.PlotModel, width, height, backgroundColor);
Hope this helps.
tboloo wrote at 2013-10-14 12:20:
Regards,
Bolek.
Restore / Save zoom levels
krafty wrote at 2013-03-27 07:33:
I have a requirement to save certain zoom levels on a graph which the user can undo...
Can we save the current zoom level for all the axes and then restore it (explicitly set them)?
Thanks.
mohitvashistha wrote at 2013-04-29 17:42:
objo wrote at 2013-04-29 18:11:
AxisChanged
event on the axes (note this event is also raised when panning/resetting the axes), save the
ActualMaximum
and ActualMinimum
properties. Call the
Zoom(x0,x1)
method to restore the view. It is possible zooming with the mouse wheel or zooming several axes may be difficult to revert (multiple events), maybe you can use a stopwatch to 'group' these events?mohitvashistha wrote at 2013-04-29 20:17:
All my charts have two axis, for multiple axis one can store the axis and its current max and min.
How to print a plot in WPF
Bitmap bitmap;
This works, but the bitmap is very blurry. Is there a better way to do this.
Thanks!
Overlapping labels.
Nihau wrote at 2014-01-27 05:30:
I was surfing "oxyplot example browser" and saw this:
My question is how do i remove overlapping of labels? Of course i can thin out every 2,3,4.. etc label, but this solution requires proper event. How to deal with it?
objo wrote at 2014-01-27 15:18:
CategoryAxis
. If a category is too narrow, it should not show the label for each item.I added
https://oxyplot.codeplex.com/workitem/10121
You can workaround by subscribing to
AxisChanged
events and finding the category width yourself, but I think it is easier to fix this in the CategoryAxis!Nihau wrote at 2014-01-28 09:50:
Thank you for adding issue, can't wait this to be fixed.
Сервис поддержки клиентов работает на платформе UserEcho