Inline labels in Matplotlib

Update: User cphyc has kindly created a Github repository for the code in this answer (see here), and bundled the code into a package which may be installed using pip install matplotlib-label-lines. Pretty Picture: In matplotlib it’s pretty easy to label contour plots (either automatically or by manually placing labels with mouse clicks). There does … Read more

How to clear a chart from a canvas so that hover events cannot be triggered?

I had huge problems with this First I tried .clear() then I tried .destroy() and I tried setting my chart reference to null What finally fixed the issue for me: deleting the <canvas> element and then reappending a new <canvas> to the parent container My specific code (obviously there’s a million ways to do this): … Read more

Remove padding or margins from Google Charts

By adding and tuning some configuration options listed in the API documentation, you can create a lot of different styles. For instance, here is a version that removes most of the extra blank space by setting the chartArea.width to 100% and chartArea.height to 80% and moving the legend.position to bottom: // Set chart options var … Read more

Command-line Unix ASCII-based charting / plotting tool

Try gnuplot. It has very powerful graphing possibilities. It can output to your terminal in the following way: gnuplot> set terminal dumb Terminal type set to ‘dumb’ Options are ‘feed 79 24’ gnuplot> plot sin(x) 1 ++—————-**—————+—-**———–+——–**—–++ + *+ * + * * + sin(x) ****** + 0.8 ++ * * * * * * … Read more

Dynamically update values of a chartjs chart

Update: Looks like chartjs has been updated (see comment below). There are some examples up that look very nice: Here’s an example of updating a line chart using new data: http://jsbin.com/yitep/5/edit Here’s how we can update existing data on a line chart: http://jsbin.com/yitep/4/edit Original Post As of Nov 2013, there seem to be very few … Read more

WPF chart controls [closed]

Free tools supporting panning / zooming: Live Charts ScottPlot DynamicDataDisplay – a nice, open source data visualization library. Unfortunately it’s not been updated since April 30, 2009. OxyPlot Free tools without built in pan / zoom support: WPF Toolkit. Supports most important 2D charts, you’ll have to implement pan / zoom yourself. WPF Toolkit Development … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)