Skip to main content

Questions tagged [plot]

The graphical representation of a mathematical function or a set of data. There are different kinds of plots, such as line plots, bar plots, or scatter plots.

10,147 questions with no upvoted or accepted answers
16 votes
2 answers
384 views

Add a horizontal discrete legend below the chart in ggvis

I'd like to make a horizontal legend below the ggvis chart. I can use legend properties to place it below the chart, but don't know how to make the labels horizontal below the legend title. Below is ...
chungkim271's user avatar
13 votes
1 answer
1k views

Draw 3D non-orthogonal coordinates

There is already a post asking how to draw non-orthogonal axis in a 2D coordinate system in matplotlib. Draw non-orthogonal axis in matplotlib? I wonder how to draw such axis in a 3D case? Say z-axis ...
quan zhou's user avatar
  • 131
10 votes
1 answer
1k views

How can I rotate arrowheads in 3D quiver in Matplotlib?

I'm trying to replicate the following plot using Python and Matplotlib. However, the best I have been able to produce is the following: The main issue here is the not in-plane arrows heads, even if ...
skdys's user avatar
  • 221
9 votes
1 answer
2k views

Plotting a graph on_click Datatable row selection in bokeh python 2.7

I would like from the following code that when the user clicks on a row from the datatable then on the call back event I would like to plot other data about the date. from datetime import date from ...
user1129988's user avatar
  • 1,546
8 votes
0 answers
983 views

Setting standoff of axis label in 3d plot in plotly (ticks labels overlap with axis label)

In case of 2d charts in plotly we can set standoff of axis label by setting standoff property (example: https://community.plotly.com/t/adding-space-beetween-axis-title-and-values/32218), but in case ...
Qbik's user avatar
  • 6,047
8 votes
0 answers
5k views

How to change the layout dynamically? How to add and remove layout objects properly?

I want to build an app with many plots. It will have some tabs, and one gridplot within the tabs with some plots. In addition, I need to update the plots layout dynamically when the server is running. ...
ChesuCR's user avatar
  • 9,540
8 votes
0 answers
1k views

matplotlib window freezing / hanging on close in ipython with OS X

This problem has affected everyone I work with that updated to the currently latest versions below. This only affects ipython plots. The regular python terminal is unaffected by this issue. ...
Alexander McFarlane's user avatar
8 votes
1 answer
4k views

Plotting large graph in R with igraph

I was trying to plot a network with 200 thousands nodes and 8 millions edges. The code I used was here: library(igraph) file.choose() xlist<-read.graph("/Users/quyao/Desktop/redstar_relation.txt", ...
cxstam's user avatar
  • 323
7 votes
2 answers
2k views

Multiple lines on same plot with incremental logging - wandb

I am using weights & biases (wandb). I want to group multiple plots into one while using incremental logging, any way to do that? Say we have 10 metrics, I can add them to the project ...
Julep's user avatar
  • 780
7 votes
0 answers
1k views

Repeat same subplot in matplotlib

I have quite complex 3D data that I want to plot using matplotlib. To be able to get a better understanding I want to plot the same data on different subplots, with just different view_init in each ...
juqa's user avatar
  • 105
7 votes
0 answers
623 views

Bokeh: how to give different colours to tick labels

I am trying to give each y tick label a different colour. "Very Poor" in Red, "Poor" in Orange, "Fair" in Yellow, "Good" in Green and "Very Good" in Blue, for example. Is there a way to do this with ...
Niroshan's user avatar
  • 2,064
7 votes
0 answers
493 views

Write a number on centers of each HealPix pixels

I have a HealPix plot, made with HEALPY, as in Healpy: From Data to Healpix map (with less pixels, for instance taking nside=2, see code below). import healpy as hp import numpy as np import ...
AlbertBranson's user avatar
7 votes
0 answers
2k views

igraph - adding text to community plot

Using the code below I can generate a plot of the communities in the 'karate club' example provided by igraph (see first image). library(igraph) karate <- make_graph("Zachary") wc <- ...
user3579613's user avatar
7 votes
0 answers
2k views

Export plotly to powerpoint in R

Is it possible to export plotly/ggplotly plot to Powerpoint and keep its interactivity? I mean by that for example to allow user to change colors of plot lines, thickness, etc. Example code: set....
Taz's user avatar
  • 5,893
7 votes
1 answer
2k views

Efficient updates of image plots in Bokeh for interactive visualization

I'm trying to create a smooth interactive visualization of different slices of a muldimensional array using Bokeh. The data in the slices changes according to the user interaction and thus has to be ...
egparedes's user avatar

15 30 50 per page
1
2 3 4 5
677