Giter Site home page Giter Site logo

plot_demo's Introduction

介绍

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

解决中文乱码

解决方法

使用的时候记得修改为

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

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

一些链接

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

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

这里可以挑 color 和 marker样式

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

折线图

plot_line()

avatar

柱状图

plot_bar()

avatar

多柱状图

多组数据展示利器

plot_multi_bar()

avatar

柱状+折线

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

plot_bar_and_line()

avatar

散点图

plot_scatters()

avatar

热力图

plot_hetmap()

avatar

组合图1

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

plot_ablation_bar_in_one()

avatar

组合图2

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

plot_two_bar_in_one()

avatar

向量可视化

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

draw_tsne.py

avatar

plot_demo's People

Contributors

ahuiwang avatar mujiubai avatar

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.