Creating a chart for different Polygons C# WPF - c#

I have a List<Geometry> containing data from Round Polygons and a List<Rectangle> where items will be added during runtime. I want to plot these data in a x-y-Chart at the bottom left position of my window. The output should look similar to this. The x- and y- axis should represent the angles in a round object.
I checked different approaches for charts and graphs like this and this, but I couldnĀ“t get a satisfying result.
Does anybody have an idea how this chart could be realised with WPF or knows where to look for examples which lead in a similar direction?

Related

OxyPlot - Is there any way to hide data points?

I'm using WPF and OxyPlot and I wanted to hide some points on a series... however this doesn't seem to be possible to my surprise! Am I missing something? I am iterating over a set of points on a series, and I'm concentrating on a specific region of the graph of the series where I want the data points outside that range to not display.

How to create charts for integrals

Im writing scientific/educational app. One of the features is calculating integrals aproximation with rectangle and trapeze methods. I want to display f(x) function chart with the results of the calculations where i could mark the areas that are accurate and inaccurate with different colors.
So far, i tried to use charts from DataVisualisation.Charting. For displaying f(x) functions i used Spline chart. In case of rectangle method i tried to use bar chart for aproximation.
There are two problems: firstly, the mesureing point are in the middle of the bars instead of on the right side; secondly, i don't know if it's possible to mark the inacuracies like on the pics above while useing the default library.

Autocad .NET - Get Layer width and height for plotting

i'm struggeling a little with my Autocad Plugin..
Since i have a huge amount of AutoCad Drawings to plot programmatically as a pdf-File i found out that some of them contain much unnecessary stuff on it.
i only want to plot a specific area which is defined in a layer. I have no problem of search for the layer and check for its properties but i can not find a single thing about coordinates or something like a height or a width..
So my question is simple: Is there a chance to get the height and width or something like that to print only the needed stuff inside the area of that layer?
Thanks
Alex
If you have a selection set of all the entities you want to plot, loop through and get each entities extents.
Compare each entity against a return value and grab the largest min and max points of everything in your selection set. This will give your the window area bounds you want to plot.

How to detect simple shapes (using emgu cv), when a contour can be torn?

I need to find the coordinates of the most popular simple shapes (usually - rectangles) in the picture. I used the approach that has been described here (Simple approach for finding rectangles ). But I've faced with the situation shown in the picture. Some boxes have a torn border and I cannot detect them with standard approach. These rectangles circled in red.
What solution would you suggest?
UPDATE:
Using dilation/erosion before binarization:
Dilation
Erosion
Use a simple dilation using a small structuring element
Find connected component
For each connected component i would calculate the ratio between the number of pixels in the component divided by the area of the bounding box i would keep only the ones that are very close to 1.

superposing two or more series into one chart in asp.net

I am trying to fetch data from an oracle database and then plot the data accordingly to a chart. It should be relatively easy but the problem is I have to plot more than one field and superimpose them into the same chart. For example there would be four lines in single chart to specify four different fields. So far I can put two/multiple series into one chart with the following code
and the chart looks like this
But I want them to be superimposed on top of each other. I am not really familiar with asp charts so it would be great to have some valuable input on this.
Thanks. The end result should be something like this -
EDIT::: I see what went wrong with the output! So, what I really wanted to know is that those two value in two series will have the same axis or not! I wanted to plot two values with such difference that they couldnt overlap and thought they were using separate axis. So what I am looking for is already here , it was just wrong data values that gave me hard time. The actual figure now looks like -

Categories

Resources