Questions tagged [python-ggplot]

A python plotting library emulating R's ggplot2.

A python plotting library emulating R's ggplot2. https://github.com/yhat/ggpy

205 questions
0
votes
1 answer

Can't Import ggplot into my python code

I'm trying to import ggplot into my project, but every time I run my code I get the following ImportError: Traceback (most recent call last): File…
mobaset
  • 47
  • 1
  • 6
0
votes
1 answer

how to plot an histogram with python ggplot?

I would like to plot an histogram representing the value TP on the y axis and the method on the x axis. In particular I would like to obtain different figures according to the value of the column 'data'. In this case I want a first histogram with…
Donbeo
  • 17,067
  • 37
  • 114
  • 188
0
votes
1 answer

Python GGPlot Syntax to Annotate Chart with Statsmodels Variable?

Not able to located complete Yhat doc to answer this question, using the R version of ggplot I've attempted to iteratively back into a solution. What is the correct syntax for annotating a Python ggplot plot with text in generally, more specifically…
user3741230
  • 307
  • 1
  • 2
  • 11
0
votes
0 answers

Trellis plot with multiple series grouped by categorical variables with ggplot and pandas

I want to make a trellis plot of my dataset. I have 2 categorical variables, minc and mut that I want to use as axis of a facet_grid plot. minc has two values, mut has two values, so at the end I should get a 2x2 grid. My problem is that in each of…
linello
  • 8,451
  • 18
  • 63
  • 109
0
votes
1 answer

How to delete figures in python-ggplot?

python ggplot is awsome, but I have trouble with a memory problem. import pandas as pd from ggplot import * data = pd.DataFrame({"date": [1, 2, 3], "value": [10, 20, 30]}) for i in range(30): gg = ggplot(aes(x='date',…
kzfm
  • 163
  • 1
  • 6
0
votes
1 answer

Get time of month in pandas

I have a pandas Series that I would like to plot by month, using ggplot and facetting - that is, one mini-plot for each month. The Series has datetime as the index, so I can use Series.index.time for the x-axis, and I can get the month using…
naught101
  • 18,687
  • 19
  • 90
  • 138
-1
votes
1 answer

Signal Plotting with Jupyter Notebook

I have been trying to plot a certain signal on python but it keeps giving me an error message I don't know how to solve it from matplotlib import pyplot as plt from matplotlib import style import mysignals as…
-1
votes
1 answer

module 'plotnine' has no attribute 'ggplot_build'

p3 = (p9.ggplot(data = df, mapping = p9.aes(x = 'gross_power', y = 'temp_drop_a',show_legend=False, alpha = 0.7)) + p9.geom_jitter() + p9.geom_smooth(se= 'F',method="lm", colour = 'red')) mygg_data = p9.ggplot_build(p3).data[[2]]
Heidi
  • 11
  • 2
-1
votes
1 answer

can we specify color of points in bokeh using some column of the dataframe as in ggplot?

In ggplot we can do ggplot(data,aes(x='col1',y='col2',color='col3')) this will give points color based on the values of col3 even if the values in col3 aren't explicit color names (like red,green,etc) How can we do something like this with bokeh
Dragon
  • 1
  • 2
-1
votes
1 answer

Installing of python ggplot fails on ubuntu 14.04

The installing of ggplot fails with the following output: user@CompA:~$ sudo pip install -U ggplot Downloading/unpacking ggplot Downloading ggplot-0.6.8.tar.gz (8.5MB): 8.5MB downloaded Running setup.py (path:/tmp/pip_build_root/ggplot/setup.py)…
1 2 3
13
14