data-visualization Questions
2
I am trying to understand the below code snippet.
sns.lmplot('num_items', 'total_value', data=log_carts,
scatter_kws={'s': 1, 'alpha': 0.1},
line_kws={'lw': 2, 'color': '#4682b4'})
I underst...
Freezing asked 12/11, 2018 at 7:13
2
I am generating a 3d scatter plot in google colab, but the problem is that the generated fig is static and is not rotatable.
I also tried the command
%matplotlib notebook
to enable the 3D scatte...
Potential asked 21/8, 2018 at 1:57
5
Solved
I have a data.frame with multiple time series vectors against a date:time vector. I would like to plot all of the relevant vectors, vertically stacked on separate graphs with the same X axis but un...
Lagos asked 3/8, 2012 at 11:1
3
Solved
I would like to create a graph with the normal function from x=-2 to x=2 filled under the curve from -2 to 0.
I've tried with ggplot2
qplot(c(-2, 2), stat="function", fun=dnorm, geom="line") +
+ g...
Pimp asked 20/10, 2015 at 18:53
2
Solved
Is there a way to put text along a density line, or for that matter, any path, in ggplot2? By that, I mean either once as a label, in this style of xkcd: 1835, 1950 (middle panel), 1392, or 2234 (m...
Teryn asked 6/11, 2021 at 20:28
2
Solved
I can turn off the modebar in plotly by passing displayModeBar: False as the value of config in fig.show(), like this-
import plotly.express as px
df = px.data.stocks()
fig = px.line(df, x='date',...
Effeminacy asked 22/5, 2021 at 10:25
2
I am using seaborn.lineplot to generate some time series plots. I have pre-compute a specific kind of error bars in two lists, e.g., upper=[1,2,3,4,5] lower=[0,1,2,3,4]. Is there a way I could cust...
Immunology asked 18/5, 2019 at 22:46
2
Solved
How can I order my bar chart so that it is in the order of greatest to least value? I tried the below code, but it isn't giving me the expected result.
I would like the bars ordered 'b', 'a', 'c' ...
Valetudinary asked 18/10, 2018 at 15:37
3
When using seaborn, is there a way I can include multiple variables (columns) for the hue parameter? Another way to ask this question would be how can I group my data by multiple variables before p...
Apologize asked 23/2, 2020 at 20:10
2
I'm trying to use vis.js to render a Network Visualization using React. For that, I've been following the guide from James Tharpe: https://www.jamestharpe.com/react-visjs/. However, the follwing er...
Lessee asked 12/5, 2021 at 23:4
2
I'm trying to plot a dataframe and I want the x-axis labels to not override each other like here
When dealing with one plot, adding .set_xticklabels(rotation=30) does solve the issue:
sns.catp...
Pentarchy asked 14/12, 2018 at 13:46
1
Solved
I borrowed the R code from the link and produced the following graph:
Using the same idea, I tried with my data as follows:
library(tidyverse)
library(tidytable)
library(ggforce)
library(ggtext)
l...
Hateful asked 17/12, 2021 at 12:39
2
I'm trying to draw a graph of any network running my script. I use scapy to collect packets and would like to have a node per computer communicating, and an edge per connection.
The issue is I can...
Pulley asked 17/9, 2018 at 11:33
1
Solved
I'm trying to plot an oriented graph with pyvis. In the documentation they suggest using the following command for creating an oriented edge:
net.add_edge(4,1,from=1,to=4)
The problems are two:
I...
Merit asked 2/12, 2021 at 8:23
10
I have a csv of 7 million biodiversity records where taxonomy levels are as columns. For instance:
RecordID,kingdom,phylum,class,order,family,genus,species
1,Animalia,Chordata,Mammalia,Primates,Ho...
Tetryl asked 12/11, 2019 at 22:24
2
Solved
In Julia, is there a way to plot a dataframe similarly to df.plot() in Python's Pandas?
More specifically, I am using Plots, plotlyjs() and the DataFrames package.
Nikolas asked 1/11, 2021 at 9:53
3
Solved
What is the most efficient way to plot 3d array in Python?
For example:
volume = np.random.rand(512, 512, 512)
where array items represent grayscale color of each pixel.
The following code w...
Epicalyx asked 30/8, 2017 at 21:28
11
Solved
I am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0.
I cannot get matplotlib graphics to show up inline.
import matplotlib
import numpy as np
import matplotlib.pypl...
Varrian asked 16/10, 2013 at 17:34
2
Solved
Can one can change the arrows of a figure into an arrow by superimposing arrows on top of the x, y and z axes to create the illusion of the axes being arrows or perhaps directly change the settings...
Meprobamate asked 8/9, 2021 at 19:25
1
Solved
I have a plot with both a colorbar and a legend. I want to place the legend outside of the plot to the right of the colorbar. To accomplish this, I use bbox_to_anchor argument, but this causes the ...
Puke asked 30/8, 2021 at 22:11
1
Solved
I am drawing a Confusion Matrix in fastai with following code:
interp = ClassificationInterpretation.from_learner(learn)
interp.plot_confusion_matrix()
But I end up with a super small matrix becau...
Luis asked 20/8, 2021 at 2:24
1
Solved
I am working with the R programming language. Recently, I learned how to "draw" horizontal and vertical lines with the ggplot library:
library(ggplot2)
# Simple scatter plot
sp <- ggp...
Scalade asked 15/8, 2021 at 4:9
2
Solved
I have the following data set
structure(list(Date = structure(c(16636, 16667, 16698, 16728,
16759, 16789, 16820, 16851, 16880, 16911, 16636, 16667, 16698,
16728, 16759, 16789, 16820, 16851, 1688...
Gelatinous asked 25/1, 2017 at 15:40
0
Is there a way to use the rpart.plot library to plot objects that do not belong to rpart (used for making decision trees)?
For instance, here is the classic rpart and rpart.plot library in action:
...
Carnot asked 5/8, 2021 at 4:16
2
Solved
I would like to center a title for a Matplotlib figure which includes a newline return (\) when rendering it LaTeX style
inserting a simple return code for latex \\ in the middle of the title wil...
Immunochemistry asked 29/5, 2019 at 11:41
© 2022 - 2024 — McMap. All rights reserved.