Giter Site home page Giter Site logo

plot_demo's Introduction

介绍

提供一些常见的Python画图示例,更好赶论文

使用的时候记得修改为

fig.savefig('./pics/{name}.pdf', format='pdf')

这样直接导出pdf插入tex就行了

一些链接

matplotlib命令与格式:图例legend语法及设置

matplotlib绘画:图例与书籍

matplotlib命令与格式:标题(title),标注(annotate),文字说明(text)

这里可以挑 color 和 marker样式

单行热力图 & 可以挑热力图的颜色

其他参考图例1

其他参考图例2

60种可视化图表总结

数据可视化分析

latex常用图标绘制

50种常用的matplotlib可视化图

matplotlib操作指南

高端图绘制

折线图

plot_line()

avatar

柱状图

plot_bar()

avatar

多柱状图

多组数据展示利器

plot_multi_bar()

avatar

多柱状图(有重叠)

plot_multi_bar_1()

avatar

柱状+折线

有时单条线或单个柱子太单调了

plot_bar_and_line()

avatar

2D柱状图

plot_2D()

avatar

折线截断图

plt_broken()

avatar

柱状截断图

bar_broken()

avatar

散点图

plot_scatters()

avatar

箱线图

plot_box()

avatar

小提琴图

plot_violin()

avatar

热力图

plot_hetmap()

avatar

3D图像

plot_3D()

avatar

组合图1

喜欢用来画多个数据集的ablation,当然也可以画成4个小图在tex里拼装,但可能图之前的缝隙会比较大

plot_ablation_bar_in_one()

avatar

组合图2

双坐标轴折线组合图,可以更加直观的观察四个组合图在两个不同指标上的变化趋势

avatar

组合图3

可以用在验证某方法具有泛化性,然后所有模型试一遍。难点在于一个字图省掉横坐标,且上下对齐。(其实我也不知道这样有啥好,嘻嘻)

plot_two_bar_in_one()

avatar

使用patchworklib包构建组合图

patchworklib_plot.py

avatar avatar avatar avatar

向量可视化

t-SNE可视化,提供的例子是一个画embedding随训练变化的例子

draw_tsne.py

avatar

快速修改图例参数

# 安装包 
pip install pylustrator
# 导入
import pylustrator
# 开启控件
pylustrator.start()
# 注意需要配合使用plt.show()来进行使用

avatar

plot_demo's People

Contributors

ahuiwang avatar qinhsiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

plot_demo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.