How can I remove the Altair yaxis of the attached image?


ZKK

enter image description here

How to remove the blue part?

import altair as alt
from vega_datasets import data

iris = data.iris()

alt.Chart(iris).mark_point().encode(
    x='petalWidth',
    y='petalLength',
    color='species'
).configure_axis(
    grid=False
).configure_view(
    strokeWidth=0
)

I've spent an entire afternoon trying to find the correct syntax to remove it, there are so many parameters that I'm totally confused. thanks.

jakevdp

You can hide the axes by setting axis=Nonethe associated encoding :

import altair as alt
from vega_datasets import data

iris = data.iris()

alt.Chart(iris).mark_point().encode(
    x='petalWidth',
    y=alt.Y('petalLength', axis=None),
    color='species'
).configure_axis(
    grid=False
).configure_view(
    strokeWidth=0
)

enter image description here

If you just want to hide tick and domain lines, you can set the and ticksaxis domainproperties to False:

alt.Chart(iris).mark_point().encode(
    x='petalWidth',
    y=alt.Y('petalLength', axis=alt.Axis(ticks=False, domain=False)),
    color='species'
).configure_axis(
    grid=False
).configure_view(
    strokeWidth=0
)

enter image description here

Related


How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I remove the Altair yaxis of the attached image?

ZKK How to remove the blue part? import altair as alt from vega_datasets import data iris = data.iris() alt.Chart(iris).mark_point().encode( x='petalWidth', y='petalLength', color='species' ).configure_axis( grid=False ).configure_view( s

How can I create a color combination like an attached image?

Knicks 290192 I want to create background in Xcode like attached image. Any suggestions? swift boy The best way is to always use Image as background let navBackgroundImage:UIImage! = UIImage(named: "your_background_image_name_here") If you just want to set th

How can I remove a specific part of an image?

Akash Tripuramallu) I have an image: original image I want to remove the grey grid part of the image without affecting the rest of the image i.e. the part inside the black circle. I have written a code for this import cv2 import numpy as np from PIL import Ima

How can I remove a specific part of an image?

Akash Tripuramallu) I have an image: original image I want to remove the grey grid part of the image without affecting the rest of the image i.e. the part inside the black circle. I have written a code for this import cv2 import numpy as np from PIL import Ima

How can I remove the border around the image?

username How can I remove the border around the square? Exterior: my HTML: <input id="black" type="image" src="html5-canvas-drawing-app/images/color-swatch-brown.png" onClick="changeColorBlack()"> my css: #black{ border:none; outline:none; background:none; pa

How can I remove a specific part of an image?

Akash Tripuramallu) I have an image: original image I want to remove the grey grid part of the image without affecting the rest of the image i.e. the part inside the black circle. I have written a code for this import cv2 import numpy as np from PIL import Ima

How can I add an attached property to a combobox?

supply Hello I currently have an attached property that takes information from TextBoxes and changes it if needed. However, it can only be used with textBoxes, which means not with user control elements like ComboBoxes and DatePickers. I'm not sure where to ch

How can I add an attached property to a combobox?

supply Hello I currently have an attached property that is used to get information from TextBoxes and change it if needed. However, it can only be used with textBoxes, which means that user control elements such as ComboBoxes and DatePickers cannot be used wit

How can I add an attached property to a combobox?

supply Hello I currently have an attached property that is used to get information from TextBoxes and change it if needed. However, it can only be used with textBoxes, which means that user control elements such as ComboBoxes and DatePickers cannot be used wit

Remove elements attached to image borders

Mostafa 2000 I'm using OpenCV to detect pneumonia in a chest x-ray using image processing, so I need to remove the additional area of the image border to get only the lungs, can anyone help me code in python? This picture explains the picture I want after appl