Graph in chart with x without limits - visual-studio-2010

I have defined a chart on a form, as you are entering the data the chart gets smaller.
Is there any way to make it pass the data as an infinite tape, doing that all entries completed within the limits of chart?
y as any series of numbers, in this case is electric current
x are time in seconds
I need the x pass continuously, not acumulative from the y and x = 0

Get the Visual Studio 2010 "WinFormsChartSamples" at Microsoft's web page Samples Environment for .NET Framework 4 Chart Controls Released!
In the example charts, there are live signal-type and time-series charts which show the real-time signal move to the left as the data are fed to the chart. Also, several speed options are available.

Related

Barplot with frequency by specific factor

I would like to create a barplot in TIBCO Spotfire with frequency on Y axis based on two factors: Stage and Genotype.
This is the standard expression that I have from Spotfire:
Count() THEN [Value] / Sum([Value]) OVER (All([Axis.X]))
It turns out, I do not want the frequency over ALL the data, but within Stage. In a way that the sum of the frequency within each is stage it will be 100%.
I watched some videos and I still did not figured out.
I tried to find a solution to your problem but could't find a working expression. This can still help you :
What I would have done in your case is :
remove the Genotype from the X Axis
set the visualization as a 100% stacked bars (with right click)
add the Genotype as a color by parameter (in the visualization options)

Is there any possibility in ssrs to show matrix below the chart(no gap between chart and matrix) when execution occures?

We have developed a ssrs report based on client requirement,in which we used 6 charts and 16 matrices.
we placed one chart on another chart in same one place.space below the charts is allocated to matrices.
But for matrices, in designing, we placed one matrix below another matrix(The gap between matrices are 1pt and it is the minimum gap between two matrices to identify.if gap is 0pt, then over lapping of matrices occured.)
Reports having multiple parameters like interval(yearly,monthly,halfyearly,quarterly),filtertypes,reporttypes,types .
Based on selection of values in above paramters,only one chart and one matrix will show data.
I have attached design image(showing no gap between charts and matrices,matrix to matrix) and image after report execution.
But, in report exuction, there is much more gap existing between chart and matrix for some selection of paramter values (my opinion is,some time the last matrix executed to display the data)
But when executing report, client don't want gap between chart and matrix for any filter selections.
already we applied expressions on charts visibility condition and matrices visibility condition to display them based on required paramter conditions .
We are using visual studio 2015 and sql server 2016
Is there any possibility in ssrs to show matrix below the chart(no gap between chart and matrix) when execution occures?
enter image description here
enter image description here
Have you tried setting the report property ConsumeContainerwhitespace to true?
Other option is to put them both in a rectangle and test. SSRS is very fiddly when it comes to such layout

faster way for setting up xticks using matplotlib

I am working on a project which make use of Python-2.7, pygtk and matplotlib-2 on windows.
My app records data from COM port and plot it like a live plot. I need to put major and minor ticks for grid purpose.
My X-axis data is time duration in seconds.
ax1.set_xticks(np.arange(x_range[0],x_range[1],0.45))
ax1.set_xticks(np.arange(x_range[0],x_range[1],0.09),minor=True)
major ticks # 0.45 sec.
minor ticks # 0.09 sec
x_range[0] is minimum value of x axis data
x_range1 is maximum value of x axis data
Setting ticks this way is taking more time and also it takes lot of time when I plot entire data.
Is there any faster way to set ticks using matplotlib?
Note: I have totally 7 different data sets to be plotted on different subplots.
Sample plot image is given blow.
In following image, you can see grid properly. This plot window is also with a scroll bar at bottom. Total plot size depends on total time of data recording.

add a drag behaviour on a cubism graph

cubism.js is probably meant for realtime vizualizations, not really for interaction, yet I was trying to be able to visualize a large dataset (for example >> 1000points) on the page, without increasing the step or chunking the data
Example: http://jsfiddle.net/B2WJM/4/ (the first 500 points of a 4000 points dataset are drawn)
var context = cubism.context()
.step(6e4)
.size(500)
.stop();
So the idea would be to drag, or zoom this graph using d3 https://github.com/mbostock/d3/wiki/Zoom-Behavior, hoping there's a nice solution possible by changing dynamically the start and stop attributes
I wanted to show the stock data described here into 3 pieces. I split my graph into 3 and added a carousel-like left/right button to toggle between them.
I think that you can split your data into 5 pieces of 800 px each which you can then move using the left/right buttons.

Mac Excel 2011 - Histogram with normal distribution

Let's say I have a list of values and I have already chunked them into groups to make a histogram.
Since Excel doesn't have histograms, I made a bar plot using the groups I developed. Specifically, I have the frequencies 2 6 12 10 2 and it produces the bar plot you see below.
Next, I want to add a normal distribution (line plot) with a mean of 0.136 and standard deviation of 0.497 on top of this histogram. How can I do this in excel? I need the axis to line up such that it takes up the width of the bar plot. Otherwise, you get something like I've attached.
But...the normal should be overlayed on the bar plot. How can I get this effect?
There are two main part to this answer:
First, I reverse-engineered the grouped data to come up with an appropriate mean and standard deviation on this scale.
Second, I employed some chart trickery to make the normal distribution curve look right when superimposed on the column chart. I used Excel 2007 for this; hopefully you have the same options available in your version.
Part 1: Reverse-Engineer
The column B formulae are:
Last Point =MAX(A2:A6)
Mean =SUMPRODUCT(B2:B6,A2:A6)/SUM(B2:B6)
E(x^2f) =SUMPRODUCT(A2:A6^2,B2:B6)
E(xf)^2 =SUMPRODUCT(A2:A6,B2:B6)^2
E(f) =SUM(B2:B6)
Variance =B10-B11/B12
StDev =SQRT(B13/(B12-1))
Part 2: Chart Trickery
Data table:
Column D is just an incremental counter. This will be the number of data points in the normal distribution curve.
E2 =D2/$B$8 etc.
F2 =NORMDIST(E2,$B$9,$B$14,FALSE) etc.
Chart:
Now, add Columns E:F to the chart. You will need to massage a few things:
Change the series to be an X-Y plot. This might require some editing of the chart series to force a single series to use your desired X and Y values.
Change the series to use the secondary axes (both X and Y).
Change the secondary X-axis range to 0.5-5.5 (i.e., 0.5 on either side of the column chart category values). This will effectively align the primary and secondary X-axes.
Change the secondary Y-axis range to 0-1
Format the X-Y series appearance to taste (I suggest removing value markers).
The result so far:
Lastly, you can remove the tick marks and labels on the secondary axes to clean up the look.
Postscript: Thanks to John Peltier for innumerable charting inspirations over the years.

Resources