Seaborn tiem series plot - time

I am using tsplot to plot a time series. The date filed yyy-mm-dd is the index for my data frame. The plot does not show dates instead it just shows numerals. How can i fix this

Related

How can I align linear and ordinal scales in d3 graphs?

I have an ordinal scale, that I am creating a bar chart with.
I create it like this:
d3.scale.ordinal()
.rangeRoundBands(js.Tuple2(0, widthOfMySvgElem), 0.1)
.domain(labels)
The labels are in fact weeks, or months, or similiar periods, and I have data for those periods.
Now, I have something like expected values, that I want to show in this graph as well.
Furthermore, those expected values can change in time, and I want to display that too.
I want to display, that I have expectedValue1 in march, and the start of April, but then at 7th of April, the expected value changed to expectedValue2, and I want to place it where the 7th of April would be on my axis. (I want to display those expected values as the straight line, that changes height as value change.)
But I have no luck matching exact location in relation to this ordinal axis.
Do you have any ideas how can I successfully align those two scales, so they will meet at the data points of ordinal scale, but that I would be able to position other values correctly as well?

AWS Quicksight Scatter Plot Using Timestamps

Does anyone know how I can plot Datetime timestamps on the Y axis of a scatter plot? I want to have a visual of when records are spaced throughout the day. So I am looking to put Users on the X and timestamps on the Y. However, Quicksight will not allow me to add the Datetime field on the visual, as it states it must be a numeric measure. Thank you.
I'm a member of QuickSight team. Current version of QuickSight only supports numeric fields on both axis of the scatter plot. Let me open a bug for it and investigate what it would take to fix it.

dc.js scatter plot with variable symbol size

What will be a good way in a scatter chart to have different point/symbol sizes?
We want to make the scatter point sizes larger based on count of same record value. Currently we use http://dc-js.github.io/dc.js/examples/scatter-brushing.html which has a single point when we have data of same values controlled by symbolSize.
We want the symbolSize to vary based on the count of record values.More the data of same value larger the point size.
I am looking for something like the c3.js jsfiddle example in Scatter plot size on "tooltip" .

Kibana 4 - How to display datapoints on split lines chart which are above value only

I'm monitoring log data from distributed build system. Each source file has its compile time.
I'm plotting data using average of compilation duration on Y axis and date histogram with #timestamp on X axis. I added Split Lines with Top 10 terms sub aggregation to observe if building of files is shorter or longer in time.
The problem is that I would like to show only data points which are above certain threshold value. I tried to cut plot on Y axis but this caused some lines went off screen connecting to data points which was cut off.

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