Skip to main content

All Questions

Tagged with
0 votes
1 answer
110 views

trouble with altair facet

I have a dataframe with 3 columns which are airline, date_flown, and sentiment. I'm not sure why but rather than rows of 5 columns being created, one giant row of all charts is created. Is there an ...
EverythingZen's user avatar
1 vote
0 answers
144 views

merging legends when creating a facet chart in Altair

I am trying to create a facet grid of plots in Altair. I have two different data frames that have a common x axis, and a common category for the facet, but each with a different column for determining ...
Carla White's user avatar
1 vote
1 answer
161 views

Altair: Limit number of ordered facets

This example code show 6 facets, ordered by their means. How could I display only e.g. 2 top or bottom facets, which are ordered this way? I tried playing around with the transform_window rank option ...
mnordstrom's user avatar
1 vote
1 answer
418 views

Annotate altair facet plots with metrics

I have the following code snippet to generate data and plot the scatters for two facet dimensions (['train','test'], ['type_a','type_b']) as columns and rows. import altair as alt import numpy as np ...
Max's user avatar
  • 335
1 vote
1 answer
241 views

How to move the Radio button to under the Title using Altair?

I'm trying to move the Radio button to top under the Title. so far i have done that but unfortunately it's somehow behind the chart and it looks like it's in background to illustrate better here's an ...
Mostafa Bouzari's user avatar
0 votes
1 answer
413 views

Altering the X-axis in Altair

I'd like to fill the charts with selectors like the example below. Any tips on how to get this to work in a faceted chart? np.random.seed(42) source = pd.DataFrame(np.cumsum(np.random.rand(8, 4), 0)....
Niklas Johansson's user avatar
1 vote
1 answer
188 views

Altair facet charts save individual image

How to split Altair .facet chart into individual images with option to save each one. is it possible to save individual images when using .facet? provided basic example of .facet chart with image save ...
Zac Connolly's user avatar
1 vote
1 answer
2k views

Python altair - facet line plot with multiple variables

I have the following kind of DataFrame Marque Annee Modele PVFP PM 0 A 1 Python 70783.066836 2.067821e+07 1 A 2 Python 75504.270716 1.957717e+07 2 A 3 Python 66383....
Bebio's user avatar
  • 409
1 vote
3 answers
388 views

How to add a series specific line y=x to a faceted (or similar) dual-axis chart in Altair?

Any suggestions for how to facet a dual axis chart and then add a line to each chart at y=x using Altair? The challenge is that the line y=x needs to match the scale of the series specific to data ...
blehman's user avatar
  • 1,950
0 votes
0 answers
498 views

Altair: Mark_rule legends with layered facets and another legend duplicate the legends

I have a bar chart for NPS values with a gradient legend. I'd like to display some static values with a legended mark_rule simultaneously, and finally facet the results. However, I can't find a way to ...
mnordstrom's user avatar
1 vote
1 answer
371 views

Show only specific facet in Altair Python

Using Altair I would like to plot only specific plots for a given facet. For example, using the Vega datasets, I would like to plot the cars only for Europe. I know how to separate the 3 plots using ...
Karim's user avatar
  • 499
1 vote
1 answer
357 views

Altair: how can I style lines differently in a facet grid, based on their max value?

I am trying to create a facet plot to compare the reaction times of subjects from a sleep deprivation study. The data come from the sleepstudy dataset, available in the pydataset package. By using ...
jackdbd's user avatar
  • 4,903
4 votes
0 answers
1k views

Altair: Can't get independent 'y' scales with faceted heatmap

I'm working in a jupyter notebook trying to display a sort of adjacency-matrix-like data set in a grouped layout like this one using Altair's Chart.facet() method. This guy's answer gets me halfway ...
Cato's user avatar
  • 41
2 votes
1 answer
1k views

'Chart' object has no attribute 'configure_facet_cell'

I am using Altair package when I use following objects I have following error message. AttributeError: 'Chart' object has no attribute 'configure_facet_cell' In order to use attribute above, what ...
flamini86's user avatar
1 vote
1 answer
2k views

Altair - plot circle, ellipse, annotations in faceted chart

Is it possible to plot lines and geometric shapes inside an Altair chart that follow the units of measure of the chart x and y variables? The chart may be faceted, and the shapes and lines depend on ...
Randall Goodwin's user avatar

15 30 50 per page