altair

Can we plot image data in Altair?

邮差的信 提交于 2021-02-16 15:55:09
问题 I am trying to plot image data in altair, specifically trying to replicate face recognition example in this link from Jake VDP's book - https://jakevdp.github.io/PythonDataScienceHandbook/05.07-support-vector-machines.html. Any one had luck plotting image data in altair? 回答1: Altair features an image mark that can be used if you want to plot images that are available at a URL; for example: import altair as alt import pandas as pd source = pd.DataFrame.from_records([ {"x": 0.5, "y": 0.5, "img"

Altair: Sorting faceted “text” chart not reflecting expectation

可紊 提交于 2021-02-11 09:13:36
问题 This is a direct follow up to Sorting based on the alt.Color field in Altair using the same dataframe (that is included for ease of reference). I asked a follow up in the comments section, but after giving it a whirl on my own and getting close, I am creating a new question. Unnamed: 0,Species,Unknown,group,LDA Score,p value 11,a,3.474929757,bad,3.07502591,5.67e-05 16,b,3.109308852,bad,2.739744898,0.000651725 31,c,3.16979865,bad,2.697247855,0.03310557 38,d,0.06730106400000001,bad,2.347746497

Altair: Sorting faceted “text” chart not reflecting expectation

一笑奈何 提交于 2021-02-11 09:12:44
问题 This is a direct follow up to Sorting based on the alt.Color field in Altair using the same dataframe (that is included for ease of reference). I asked a follow up in the comments section, but after giving it a whirl on my own and getting close, I am creating a new question. Unnamed: 0,Species,Unknown,group,LDA Score,p value 11,a,3.474929757,bad,3.07502591,5.67e-05 16,b,3.109308852,bad,2.739744898,0.000651725 31,c,3.16979865,bad,2.697247855,0.03310557 38,d,0.06730106400000001,bad,2.347746497

Altair: Sorting faceted “text” chart not reflecting expectation

跟風遠走 提交于 2021-02-11 09:12:05
问题 This is a direct follow up to Sorting based on the alt.Color field in Altair using the same dataframe (that is included for ease of reference). I asked a follow up in the comments section, but after giving it a whirl on my own and getting close, I am creating a new question. Unnamed: 0,Species,Unknown,group,LDA Score,p value 11,a,3.474929757,bad,3.07502591,5.67e-05 16,b,3.109308852,bad,2.739744898,0.000651725 31,c,3.16979865,bad,2.697247855,0.03310557 38,d,0.06730106400000001,bad,2.347746497

Altair: Sorting faceted “text” chart not reflecting expectation

匆匆过客 提交于 2021-02-11 09:11:52
问题 This is a direct follow up to Sorting based on the alt.Color field in Altair using the same dataframe (that is included for ease of reference). I asked a follow up in the comments section, but after giving it a whirl on my own and getting close, I am creating a new question. Unnamed: 0,Species,Unknown,group,LDA Score,p value 11,a,3.474929757,bad,3.07502591,5.67e-05 16,b,3.109308852,bad,2.739744898,0.000651725 31,c,3.16979865,bad,2.697247855,0.03310557 38,d,0.06730106400000001,bad,2.347746497

Altair: Sorting faceted “text” chart not reflecting expectation

戏子无情 提交于 2021-02-11 09:11:11
问题 This is a direct follow up to Sorting based on the alt.Color field in Altair using the same dataframe (that is included for ease of reference). I asked a follow up in the comments section, but after giving it a whirl on my own and getting close, I am creating a new question. Unnamed: 0,Species,Unknown,group,LDA Score,p value 11,a,3.474929757,bad,3.07502591,5.67e-05 16,b,3.109308852,bad,2.739744898,0.000651725 31,c,3.16979865,bad,2.697247855,0.03310557 38,d,0.06730106400000001,bad,2.347746497

Keep altair sliders with plots when concatenating

不打扰是莪最后的温柔 提交于 2021-02-10 22:30:34
问题 When concatenating 2 charts with their own sliders, the sliders are grouped together at the end. Is there a way to have the sliders remain with each plot? Here is an example, modified from the docs import altair.vegalite.v3 as alt import pandas as pd import numpy as np rand = np.random.RandomState(42) df = pd.DataFrame({"xval": range(100), "yval": rand.randn(100).cumsum()}) slider1 = alt.binding_range(min=0, max=100, step=1, name="cutoff1:") selector1 = alt.selection_single( name=

Keep altair sliders with plots when concatenating

家住魔仙堡 提交于 2021-02-10 22:28:08
问题 When concatenating 2 charts with their own sliders, the sliders are grouped together at the end. Is there a way to have the sliders remain with each plot? Here is an example, modified from the docs import altair.vegalite.v3 as alt import pandas as pd import numpy as np rand = np.random.RandomState(42) df = pd.DataFrame({"xval": range(100), "yval": rand.randn(100).cumsum()}) slider1 = alt.binding_range(min=0, max=100, step=1, name="cutoff1:") selector1 = alt.selection_single( name=

Keep altair sliders with plots when concatenating

被刻印的时光 ゝ 提交于 2021-02-10 22:27:48
问题 When concatenating 2 charts with their own sliders, the sliders are grouped together at the end. Is there a way to have the sliders remain with each plot? Here is an example, modified from the docs import altair.vegalite.v3 as alt import pandas as pd import numpy as np rand = np.random.RandomState(42) df = pd.DataFrame({"xval": range(100), "yval": rand.randn(100).cumsum()}) slider1 = alt.binding_range(min=0, max=100, step=1, name="cutoff1:") selector1 = alt.selection_single( name=

Keep altair sliders with plots when concatenating

吃可爱长大的小学妹 提交于 2021-02-10 22:27:32
问题 When concatenating 2 charts with their own sliders, the sliders are grouped together at the end. Is there a way to have the sliders remain with each plot? Here is an example, modified from the docs import altair.vegalite.v3 as alt import pandas as pd import numpy as np rand = np.random.RandomState(42) df = pd.DataFrame({"xval": range(100), "yval": rand.randn(100).cumsum()}) slider1 = alt.binding_range(min=0, max=100, step=1, name="cutoff1:") selector1 = alt.selection_single( name=