Questions tagged [mpld3]

The mpld3 project brings together Matplotlib, the popular Python-based graphing library, and D3js, the popular Javascript library for creating interactive data visualizations for the web.

The mpld3 project brings together Matplotlib, the popular Python-based graphing library, and D3js, the popular Javascript library for creating interactive data visualizations for the web. The result is a simple API for exporting your matplotlib graphics to HTML code which can be used within the browser, within standard web pages, blogs, or tools such as the IPython notebook.

154 questions
0
votes
1 answer

Is there a way to turn off Scientific Notation for Mpld3 plugins

I want to use mpld3's MousePosition plugin to display the pixel location of my cursor. This works great, but I can't figure out how to turn off scientific notation in the plugin. Pixels > 1000 are displayed in scientific notation. My code: import…
DanGoodrick
  • 2,818
  • 6
  • 28
  • 52
0
votes
0 answers

NetworkX Force Layout Graph not displaying Properly with Mpld3 in Heroku

I am trying to display a NetworkX graph inside my Flask application, using matplotlib and the mpld3 library. f=plt.figure() pos=nx.spring_layout(G) nx.draw_networkx_nodes(G,pos,nodelist=nodes, node_color='r', node_size=50,…
Avijit
  • 391
  • 2
  • 21
0
votes
1 answer

custom ticks on an ordinal scale d3

I've been creating some charts to plot intra-day data from financial results. Often this is a value generated every ten minutes. This varies but its a good example. Therefore there are large periods of time I won't get information, eg when markets…
Bob Haslett
  • 961
  • 1
  • 10
  • 31
0
votes
1 answer

Matplotlib window stalls using ipython notebook

ipython notebook 3.0.0 matplotlib 1.4.3 OS X 10.11.4 I am creating an interactive 3D scatter plot of a 3D data cube. I've included here a toy example that generates the same problems I am encountering trying to plot my data cube. If I generate a…
astromonerd
  • 907
  • 1
  • 15
  • 32
0
votes
1 answer

Adding tooltip to multi line plot using mpld3

I'm a complete noob to web development. I was working on a flask app which plots multiline charts from pandas dataframe using matplotlib, but I wish to add tooltip to the data points via mpld3. mpld3tooltip example is only for scatter plots. How to…
ArchieTiger
  • 2,083
  • 8
  • 30
  • 45
0
votes
1 answer

How to display a big figure with mlpd3 inside jupyter notebook?

I am using jupyter-notebook to write some python code and generate figures. As I wanted to add tooltips on mouse hovering and other interactions with the generated graphs, I now use mpld3 to display the graph. However, as I have quite a lot of…
pip
  • 185
  • 2
  • 2
  • 12
0
votes
1 answer

Can I use tooltips in linked subplots in MPLD3

I tried the tooltip example in MPLD3. However, in my figure, I have several subplots with the linked x axis (length of data is the same, I am plotting different column of a dataframe). With the code below, I was able to see the tooltip when I move…
0
votes
0 answers

mpld3 LinkedBrush - custom links

I am using mpld3 to draw a series of scatter plots. I have used the PointLabelTooltip successfully. But I would also like to use the LinkedBrush feature to highlight points with the same characteristic. For example, I have drawn a scatter plot of…
Ruth
  • 1
  • 2
0
votes
1 answer

Getting the zoom level of an mpld3 plot

is there a way to read out the zoom level of an mpld3 plot, i.e. the range of the visible x- and y-axis? I tried to use d3.behavior.zoom, but I don't know how I can get the zoom behavior of my mpld3 plot.
CWelling
  • 25
  • 1
  • 3
0
votes
0 answers

mpld3 ~ Select points and get their coordinates?

Is it possible to use mpld3 to select certain points on a graph, and then get the coordinates of those points? For example, here you can select points with a rectangle, which dynamically updates other subplots, is there any way to get the identity…
applecider
  • 2,311
  • 4
  • 19
  • 35
0
votes
1 answer

issue in making a bar chart using matplotlib or mpld3 in pyspark

I have a list list = [['0-50',4],['50-100',11],['100-150',73],['150-200',46]] and I want to show it on a histogram using mpld3 in python pyspark. The first part in each element of list is range which will be on x-axis of histogram and the second…
user2966197
  • 2,793
  • 10
  • 45
  • 77
0
votes
1 answer

How do you display Greek symbols in mpld3 (Python Matplotlib D3) plots?

The conventional plt.title(r'$\alpha$') for instance does not work in mpld3.enable_notebook(), whereas it does in normal matplotlib.pyplot.
mikal94305
  • 4,663
  • 8
  • 31
  • 40
0
votes
1 answer

Tooltips disappear after zoom in/out when using matplotlib mpld3

I have a matplotlib figure with tooltips on the point markers: And the zoom in/out is working: However after the zoom in/out is performed the tooltips no longer function: and even restoring the original (non-zoomed) size they do not come back.
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
0
votes
1 answer

Unhide toolbar in MPLD3

Is there an existing plugin for mpld3 that stops the toolbar from autohiding? In general, I am trying to make the toolbar more visible, so any existing plugins modifying the toolbar (making it larger, more opaque, etc) would be helpful. I saw this…
0
votes
1 answer

How to enable smooth zooming in Bokeh?

I have just starting looking into making my python graphs interactive. Bokeh seems to have a lot of functionality and I am currently trying it out. One thing that I find aesthetically pleasing with the mpld3 library is the smooth zooming after…
joelostblom
  • 43,590
  • 17
  • 150
  • 159
1 2 3
10
11