许可优化
许可优化
产品
产品
解决方案
解决方案
服务支持
服务支持
关于
关于
软件库
当前位置:服务支持 >  软件文章 >  Python可视化绘图库:Altair必备工具详解

Python可视化绘图库:Altair必备工具详解

阅读数 6
点赞 0
article_banner

https://altair-viz.github.io/index.html

Altairis a declarative statistical visualization library for Python, based onVegaandVega-Lite, and the source is available onGitHub.

With Altair, you can spend more time understanding your data and its meaning. Altair’s API is simple, friendly and consistent and built on top of the powerfulVega-Litevisualization grammar. This elegant simplicity produces beautiful and effective visualizations with a minimal amount of code.

Getting Started

Overview

Installation

Basic Statistical Visualization

Gallery

Example Gallery

User Guide

Specifying Data in Altair

Encodings

Marks

Data Transformations

Bindings, Selections, Conditions: Making Charts Interactive

Top-Level Chart Configuration

Compound Charts: Layer, HConcat, VConcat, Repeat, Facet

Scale and Guide Resolution

Saving Altair Charts

Customizing Visualizations

Times and Dates in Altair

Frequently Asked Questions

Display Troubleshooting

Altair Renderers

Altair Internals: Understanding the Library

API Reference

Altair Ecosystem

Case Studies

Exploring Seattle Weather

Advanced Usage

Importing Vega & Vega-Lite Versions

Displaying Charts in Various Frontends

Customizing Renderers

Data transformers

Installation

To use Altair for visualization, you need to install two sets of tools

The core Altair Package and its dependencies

The renderer for the frontend you wish to use (i.e.Jupyter Notebook,JupyterLab,Colab, ornteract)

Additionally, Altair’s documentation makes use of thevega_datasetspackage, and so it is included in the installation instructions below.

Depending on the frontend you would like to use, the instructions differ slightly. See the following instructions for your chosen frontend:

Quick Start: Altair + JupyterLab

Quick Start: Altair + Notebook

Quick Start: Altair + Colab

Quick Start: Altair + JupyterLab

We recommend installing Altair with JupyterLab. If you would like to use it with the classic notebook, seeQuick Start: Altair + Notebook.

Altair version 3 works best with JupyterLab version 1.0 or later.

To install JupyterLab and Altair with conda, run the following command:

$ conda install -c conda-forge altair vega_datasets jupyterlab

To install JupyterLab and Altair with pip, run the following command:

$ pip install -U altair vega_datasets jupyterlab

Once this is finished, run:

$ jupyter lab

In the browser window that launches, select “File”->”New”->”Notebook” and then click “Select” without changing the kernel (it should say “Python 2” or “Python 3” depending on which Python version you are running).

免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

相关文章
QR Code
微信扫一扫,欢迎咨询~
customer

online

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 board-phone 155-2731-8020
close1
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

姓名不为空

姓名不为空
手机不正确

手机不正确

手机不正确
公司不为空

公司不为空

公司不为空