Ext.net best way to represent density in a chart - charts

Hello,
I should represent the density of a product passing through an oil pipeline using a graphic representation like the one in the picture I enclose. In the x-axis we have the distance from the start of the pipeline and the colors indicate the density of the product in the pipeline (each color corresponds to a particular density value). Which is the best ext.net component I can use for this purpose? Can you provide and example please? Thank you
P.S. I am using Ext.net 4.8.3.0

Related

MATLAB - Filling a map with a gradient of two colors based on city colors

I have a map where each city is classified somewhere between r=0 and r=1, which I have plotted in the following image using the color [r 0 1-r], which gives me a color between red and blue for each city. In this case, the circles are just for testing, and should not be visible in the final image. Currently the circle radius represents the amount of data available for each city. The country outline uses the borders data. Here's the result so far:
My goal is to fill the map with a non-linear gradient of red/blue, taking into account this data and extrapolating it.
(In this example the border seems pretty linear, but that's not always the case, hence the need for a non-linear gradient)
Can anyone point me in the right direction? Thank you!
What you're probably looking for is griddata, which lets you interpolate (unevenly) scattered data points using various interpolation methods. So you could evaluate the interpolation on a grid (which can be created using meshgrid or ndgrid) and then e.g. use surf to plot the interpolated function.

Image Processing Q: Separate/segment an image

need some help here on image processing. I'm using Matlab and try to segment the following figure based on the two major peaks (in yellow). The color yellow means higher value and blue means low value (on z-axis, or image color from 0 to 1 for your convenience). The ideal cut is roughly the line from point (1,75) to (120,105). But I want a systematic way to derive this rather than by observation.
My intuition was to first identify the two peaks (based on this), and then classify each point/pixel on this figure to the two peaks (the metric here is to compute the shortest Euclidean distance to the edge of the two peaks).
And I end up with the following fig.
As you can see, the cut is pretty much a straight line, which I'm not quite satisfied. Maybe I can use the orientation of the peak circle and somehow tilt the line.. but I'm not sure how to do so? Any clues? Thanks.
This is an Image segmentation problem.
you can use GMM Gaussian of Mixture Model to model the image.
in your case the number of components will be 2.
after you model the image by using this mixture, you can find the probability of each pixel P(pixel x belong to the first component or the second component)
check
http://www.mathworks.com/matlabcentral/newsreader/view_thread/272162
http://www.mathworks.com/help/stats/cluster-data-from-mixture-of-gaussian-distributions.html

Creating a feature vector in MATLAB

I have calculated texture, color and shape features on an image.But those just add up to 12 features. I read that people extract 1000 features and such. Could someone please explain to me how do i increase the number of features? And then how do i save them to form a feature vector?
Features are the most significant or interest points of an image.In general lets say I am interested in the edges information of an image.As we know edges are found by laplacian filter in spatial domain so the only points that will remain in the image will be edges point.Each edge point will have its x,y co-ordinate followed by intensity value.These three information of all the interest points would probably lead to multi-dimension feature vector in this case which would be depend on the type of image you are taking.These three multidimensional information will be called my feature vector.
Similarly histogram of an image can also be your feature which will range from 0 to 255 value for an gray scale image.So in that case you can store for every image this 255 values as features.
Hope you got the idea.Image is an subjective thing so depending on any application and given data set we will extract features and form feature vectors.
Apart from color,texture and shape you can even work on the signatures,edges,histogram and so on properties of an image.

How to cut a dendrogram and represent on a geographic map

I would like know if there are any tools/commands in MATLAB or any other software that helps to cut the dendrogram (where points represent states) at a certain height and represent it in a geographical map like the one in the below images.
Could you please let me know if there is any better way to do it
Thank you.
You can draw polar dendrogram (as on your example) with File Exchange submission - Draw a Polar Dendrogram.
To apply threshold to distance between nodes and get the cluster data you can use CLUSTER or CLUSTERDATA function.
Then you can use USAMAP function from Mapping Toolbox to draw the states and apply colors based on your clusters. See the example 3 in the documentation.

Create Normal Distribution (Bell Curve) chart using FLOT

Has anyone tried creating Normal Distribution chart using FLOT?
If so, can you please put me in a right direction with some suggestions and links to tutorial?
Thanks.
FLOT is simply a plotting engine. If you want to create a Bell Curve, you need to feed a probability density function a series of x values and plot the resulting points.
For instance I used the functions from here to create this:
Here's the jsFiddle that shows my work.