88 Commits

Author SHA1 Message Date
EthanDeng
f9f002a586 update readme 2022-12-31 10:37:33 +08:00
EthanDeng
56f3042066 Merge branch 'master' of github.com:ElegantLaTeX/ElegantBook 2022-12-31 10:26:44 +08:00
EthanDeng
4611cd6d7b fix version 2022-12-31 10:26:35 +08:00
sikouhjw
ea643e3783 Merge pull request #235 from sikouhjw/master
修改文档中排序方式的解释
2022-12-30 20:09:07 +08:00
sikouhjw
ba69287a64 修改文档中排序方式的解释 2022-12-30 20:06:53 +08:00
EthanDeng
5d8a544e0e last version 2022-12-25 23:29:15 +08:00
syvshc
9b8b09df54 修复带星号的定理类环境的 \thetcbcounter 未定义的问题. 2022-10-22 01:03:09 +08:00
EthanDeng
99eb12f4c4 fix toc width 2022-09-18 19:41:42 +08:00
EthanDeng
cf516c7f2e fix version 2022-09-18 19:18:55 +08:00
EthanDeng
ecf5bf6309 bib usage error 2022-08-23 16:15:55 +08:00
Dongsheng Deng
a495c98ca4 Merge pull request #215 from ElegantLaTeX/usesamecnt
Usesamecnt
2022-08-23 15:19:26 +08:00
syvshc
e4c102f011 - 增强对定理类环境的计数器的控制
- 增加文档类选项 `usesamecnt`, 使全文的定理类环境计数器统一.
- 为 `\elegantnewtheorem` 增加新的可选参数, 来选择该定理类环境的计数器统一的计数器
2022-08-17 04:15:39 +08:00
syvshc
aeefa43d01 删除多余的 beforechap 2022-08-17 00:49:45 +08:00
EthanDeng
81bf10a58b fix dates 2022-08-15 12:57:50 +08:00
EthanDeng
94152955a2 fix comma 2022-08-15 12:53:35 +08:00
EthanDeng
d7febb69f7 update readme 2022-08-15 12:49:30 +08:00
EthanDeng
85176416ad update document 2022-08-15 12:36:42 +08:00
EthanDeng
4c9ca031d8 remove gitee 2022-08-12 10:43:26 +08:00
EthanDeng
4cc89482f8 Merge branch 'dev' of github.com:ElegantLaTeX/ElegantBook into dev 2022-08-12 10:32:32 +08:00
EthanDeng
f91390ddfc merge 2022-08-12 10:32:15 +08:00
syvshc
35f058868e fix the patch for hyperref before 2022/05/16 2022-06-06 23:07:45 +08:00
syvshc
4949004371 为兼容 2022/05/16 前的 hyperref 增加判断 2022-06-05 04:47:53 +08:00
syvshc
ccb5464463 将 \section 中的 \lstinline 改为 \texttt, 消除 overfull box 警告 2022-06-02 23:44:20 +08:00
syvshc
b1585deeb9 将 scheme=chinese 时的“第1章”改为“第一章” 2022-05-28 03:20:26 +08:00
syvshc
48f19691fc v4.4 pre
* 重要改动:提供了一个定义定理类环境的命令 \elegantnewtheorem;
* 重要改动:为所有内置定理类环境提供了带星号的版本,带星号的定理类环境不会编号;fix #167
* 将 TeX Gyre Termes 改为 TeX Gyre TermesX,使英文部分字形与 newtx
  系列宏包更相近;
* 重写了内置定理类环境的实现方法。
2022-05-25 22:55:09 +08:00
syvshc
5b410a1cff 修复对编译的判断, 修改英文字体为 TG TermesX 2022-05-06 13:23:20 +08:00
syvshc
3f7c85e5c7 fix #194 2022-05-06 12:40:09 +08:00
syvshc
5c0f54819a fix: 🐛 修复单独使用 newtxmath 宏包时的 op, \mathrm/bf/it 时的字体错误
 Closes: #196
2022-05-05 14:01:34 +08:00
syvshc
81a25970e8 fix: 🐛 fix a bug when \label contains =
 Closes: #194
2022-04-30 11:53:54 +08:00
syvshc
63d0dda991 fix typo: lsset -> lstset 2022-04-29 03:52:32 +08:00
EthanDeng
921777db03 remove defbib 2022-04-21 12:51:31 +08:00
EthanDeng
3c6c0f163c fix hyperref color back to winered 2022-04-18 18:50:03 +08:00
EthanDeng
b3108df9c2 confirm the bug fixed 2022-04-18 18:41:14 +08:00
EthanDeng
083483f7b5 error 2022-04-18 18:33:20 +08:00
EthanDeng
b1f7d7b30d tcb theorem 2022-04-18 18:31:16 +08:00
Dongsheng Deng
db7fd517dd Merge pull request #190 from syvshc/bugfix
compatibility with tcb theorem style
2022-04-18 18:29:16 +08:00
syvshc
6f2173674f update theorem-like environment introduction 2022-04-18 17:32:06 +08:00
syvshc
d11253214e fix thm color 2022-04-18 17:26:55 +08:00
syvshc
943493a29c compatibility with tcb theorem style 2022-04-18 14:43:36 +08:00
EthanDeng
61b911ebd6 update readme 2022-04-09 12:33:43 +08:00
EthanDeng
02bc4225fb remove the redundant imgs 2022-04-09 12:25:54 +08:00
EthanDeng
c0bdf12916 fix minor chagne 2022-04-09 12:08:16 +08:00
EthanDeng
4a764ff1f2 merge 2022-04-09 12:06:53 +08:00
EthanDeng
3545a46449 remove option founder 2022-04-09 12:05:25 +08:00
EthanDeng
7f1dedd79f version 4.3 2022-04-09 12:01:59 +08:00
EthanDeng
7506140be9 update git ignore 2022-04-08 17:29:06 +08:00
EthanDeng
f9b2d0eb80 pre 2022-04-08 17:25:12 +08:00
EthanDeng
d2c10a1d02 version 4.3 pre release 2022-04-08 17:22:27 +08:00
EthanDeng
3f77eb1adc Merge branch 'dev' of github.com:ElegantLaTeX/ElegantBook into dev 2022-04-07 21:48:17 +08:00
EthanDeng
4955628d8c -f 2022-04-07 21:46:54 +08:00
EthanDeng
acc71ecea2 update sansfont 2022-04-07 21:45:40 +08:00
EthanDeng
eb233e4309 update font settings 2022-04-07 21:33:50 +08:00
EthanDeng
34e2225019 version 4.2 2022-03-07 17:18:48 +08:00
EthanDeng
91f5e46c94 update version id 2022-03-07 17:17:56 +08:00
EthanDeng
6a60b16e14 bug fix for newtx pkg update 2022-03-07 17:04:26 +08:00
Dongsheng Deng
909fb2c997 Merge pull request #178 from valdigleis/pt-branch
Add portuguese translation
2022-02-14 16:23:18 +08:00
valdigleis
c669c4a263 Add portuguese translation 2022-02-05 21:15:01 -03:00
Dongsheng Deng
53547c11e4 Merge pull request #177 from syvshc/hotfix
patch for newtx v1.7 or later
2022-01-15 10:00:34 +08:00
syvshc
093c73e4c9 patch for newtx v1.7 or later 2022-01-15 00:50:18 +08:00
EthanDeng
3d0f25cc6a update readme 2022-01-04 13:42:26 +08:00
EthanDeng
a7e5c032c5 update install latex site 2021-05-13 21:53:13 +08:00
EthanDeng
bf40203c9f modify md 2021-05-02 21:14:42 +08:00
EthanDeng
b518213c77 version 4.1 2021-05-02 21:02:32 +08:00
EthanDeng
71c0f9e1a5 fix confilct 2021-02-23 13:25:55 +08:00
EthanDeng
d40cb2c42e chapter section settings and fix header 2021-02-23 13:22:47 +08:00
EthanDeng
6c64e5900b fix confilct 2021-01-02 12:27:55 +08:00
EthanDeng
3bebe9697f fix fonts problem 2021-01-02 12:25:30 +08:00
EthanDeng
30a916c26c add spanish translation provided by Gustavo A. Corradi 2020-11-16 12:23:32 +08:00
EthanDeng
61ac6a08c4 update restart 2020-10-26 21:06:12 +08:00
EthanDeng
f123c6a83b update language translation 2020-09-02 12:29:44 +08:00
EthanDeng
e771b81dc8 update readme 2020-08-19 11:58:45 +08:00
Dongsheng Deng
f75907371d Merge pull request #116 from azzamsa/master
fix link typo
2020-08-19 12:04:08 +08:00
azzamsa
f192cf44fa fix link typo 2020-08-19 10:18:16 +07:00
EthanDeng
ce87722d38 update donation list 2020-08-13 12:14:20 +08:00
EthanDeng
01951eeb28 fix problemset header problem 2020-08-04 22:25:03 +08:00
EthanDeng
4e53474e6e primary of 4.0.5 2020-08-04 12:21:07 +08:00
EthanDeng
cf755a0387 hyperref toc clickable 2020-07-29 13:37:20 +08:00
EthanDeng
9092103354 update biblatex 2020-07-06 22:39:58 +08:00
EthanDeng
303d2e5c9d modify readme 2020-06-09 12:20:40 +08:00
EthanDeng
a8123170ca readme to chinese and english 2020-06-09 12:17:12 +08:00
EthanDeng
5d02e85f01 update version date number 2020-06-03 20:24:19 +08:00
EthanDeng
9ef6a5bf5a revert theorem usage to amsthm style 2020-06-03 20:22:15 +08:00
EthanDeng
d281e3e834 update english guide 2020-04-13 21:32:59 +08:00
EthanDeng
78fe2c7daf frozen 3.11 2020-04-12 13:43:33 +08:00
EthanDeng
ae7a9ae8f6 update 3.11 2020-04-12 12:00:13 +08:00
EthanDeng
c84f79922d frozen 3.x 2020-04-11 10:19:16 +08:00
EthanDeng
6ab10beda8 fix problem/example/exercise space 2020-03-21 00:23:42 +08:00
EthanDeng
09b71b9ab7 add lang=it 2020-03-19 13:14:30 +08:00
13 changed files with 2829 additions and 2035 deletions

1
.gitignore vendored
View File

@@ -11,6 +11,7 @@
*.cb *.cb
*.cb2 *.cb2
.*.lb .*.lb
.DS_Store
clean.bat clean.bat
elegant*-cn.pdf elegant*-cn.pdf
elegant*-en.pdf elegant*-en.pdf

148
README.md
View File

@@ -1,145 +1,41 @@
<!-- Author : Dongsheng Deng & Liam Huang--> <!-- Author : Dongsheng Deng & Liam Huang-->
<!-- Program Email: elegantlatex2e@gmail.com --> <!-- Program Email: elegantlatex2e@gmail.com -->
[Homepage](https://elegantlatex.org/) | [Github](https://github.com/ElegantLaTeX/ElegantBook) | [CTAN](https://ctan.org/pkg/elegantbook) | [Download](https://github.com/ElegantLaTeX/ElegantBook/releases) | [Wiki](https://github.com/ElegantLaTeX/ElegantBook/wiki) | [Weibo](https://weibo.com/elegantlatex) [Homepage](https://elegantlatex.org/) | [Github](https://github.com/ElegantLaTeX/ElegantBook) | [CTAN](https://ctan.org/pkg/elegantbook) | [Download](https://github.com/ElegantLaTeX/ElegantBook/releases) |
![License](https://img.shields.io/ctan/l/elegantbook.svg) ![CTAN Version](https://img.shields.io/ctan/v/elegantbook.svg) ![Github Version](https://img.shields.io/github/release/ElegantLaTeX/ElegantBook.svg) ![Repo Size](https://img.shields.io/github/repo-size/ElegantLaTeX/ElegantBook.svg) ![License](https://img.shields.io/ctan/l/elegantbook.svg) ![CTAN Version](https://img.shields.io/ctan/v/elegantbook.svg) ![Github Version](https://img.shields.io/github/release/ElegantLaTeX/ElegantBook.svg) ![Repo Size](https://img.shields.io/github/repo-size/ElegantLaTeX/ElegantBook.svg)
---
# ElegantBook 优美的 LaTeX 书籍模板
ElegantBook 是为 LaTeX 书籍写作而设计的模板,由 [Dongsheng Deng](https://ddswhu.me/) 和 [Liam Huang](https://liam.page/) 创立,模板创立的初衷是方便我们自己做笔记 :smile:。如果你有其他问题、建议或者报告 bug可以提交 issues 或者给我们发邮件elegantlatex2e@gmail.com。QQ 用户交流群692108391欢迎加入。
## 重要提示
**版本提醒:** 由于新版本进行了重构,并且 3.06 版本对于封面进行了改版3.06 以后的版本并不兼容之前版本,如果你想把之前版本的文件转为 3.06 以后的版本,请查看[跨版本转换](https://github.com/ElegantLaTeX/ElegantBook/wiki/convert)。我们强烈建议你使用最新版。
**重要提示**ElegantLaTeX 项目 **不接受** 任何非作者预约提交pull requests
## 致谢
2019 年 5 月 20 日ElegantBook 模板在 Github 上的 Star 数达到了 100这对于 ElegantLaTeX 系列模板是一个非常重要的里程碑!在此特别感谢 ChinaTeX 以及 [LaTeX 工作室](http://www.latexstudio.net/)对于本系列模板的大力宣传与推广。LaTeX 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏。这也是我所见到的国内最全面的 LaTeX 相关的网站。
如果你喜欢我们的模板,你可以在 Github 上收藏我们的模板。
## 捐赠
如果您非常喜爱我们的模板或者我,你还可以选择捐赠以表达您对我们模板和我的支持。本模板自 3.08 版本发布了捐赠信息之后,收到了超过千元的捐赠(四舍五入就是一个亿),非常感谢!
![](https://github.com/ElegantLaTeX/ElegantBook/wiki/donate.jpg)
**赞赏费用的使用解释权归 ElegantLaTeX 所有,并且不接受监督,请自愿理性打赏**。10 元以上的赞赏,我们将列入捐赠榜,谢谢各位金主!(如果有遗漏,请务必联系我们,这对我们很重要)
| 捐赠者 | 金额 | 时间 | 渠道 |
| :------: | :----: | :----: | :------: |
| Lerh | 10 RMB | 2019/05/15 | 微信 |
| 越过地平线 | 10 RMB | 2019/05/15 | 微信 |
| 银桑 | 20 RMB | 2019/05/27 | 微信 |
| *空 | 10 RMB | 2019/05/30 | 微信 |
| [latexstudio.net](http://www.latexstudio.net) | 666 RMB | 2019/06/05 | 支付宝 |
| Cassis | 11 RMB | 2019/06/30 | 微信 |
| *君 | 10 RMB | 2019/07/23 | 微信 |
| P*u | 50 RMB | 2019/07/30 | 微信 |
| *萌 | 19 RMB | 2019/08/28 | 微信 |
| 曲豆豆 | 10 RMB | 2019/08/28 | 微信 |
| 李博 | 100 RMB | 2019/10/06 | 微信 |
| Njustsll | 10 RMB | 2019/10/11 | 微信 |
| 刘志阔 | 99.99 RMB | 2019/10/15 | 支付宝 |
| *涛 | 16 RMB | 2019/10/17 | 微信 |
| 赤霓 | 12 RMB | 2019/10/17 | 支付宝 |
| 追寻原风景 | 10 RMB | 2019/10/28 | 微信 |
| 郭德良 | 88 RMB | 2019/11/03 | 微信 |
| 自强不息 | 20 RMB | 2019/11/04 | 支付宝 |
| 读书之虫 | 20 RMB | 2019/11/18 | 微信 |
| *等 | 10 RMB | 2019/11/18 | 微信 |
| *哲 | 20 RMB | 2019/11/18 | 微信 |
| 佚名 | 10 RMB | 2019/11/24 | 微信 |
| Jiye Qian | 66 RMB | 2019/12/04 | 微信 |
| * 阳 | 20 RMB | 2019/12/05 | 微信 |
| Catcher | 11 RMB | 2019/12/08 | 支付宝 |
| 希尔波特门徒 | 10 RMB | 2019/12/09 | 支付宝 |
| * 伟 | 10 RMB | 2019/12/09 | 微信 |
| Simon | 20 RMB | 2019/12/11 | 支付宝 |
| 流殇丶浅忆 | 66.60 RMB | 2019/12/18 | 支付宝 |
| 羽 | 10 RMB | 2019/12/20 | 支付宝 |
| * 琛 | 15 RMB | 2019/12/20 | 微信 |
| 随风 | 20 RMB | 2019/12/27 | 支付宝 |
| Ws | 23.30 RMB | 2019/12/28 | 微信 |
再次感谢大家对于模板的喜爱!
## 协议
本模板发布遵循 LaTeX 项目公共许可证 1.3 c 或更高版本。如果是衍生作品请务必加入协议声明和模板信息github、CTAN 地址)。
## 衍生作
+ [ElegantBookdown](https://github.com/XiangyunHuang/ElegantBookdown)[XiangyunHuang](https://github.com/XiangyunHuang) 开发并维护的基于 ElegantBook 的 Bookdown 模板。
+ [bookdownplus](https://github.com/pzhaonet/bookdownplus):应网友要求,[pzhaonet](https://github.com/pzhaonet) 在 bookdownplus 收录了 ElegantPaper 模板,并为 Mac 做了字体适配。
+ [PanBook](https://github.com/annProg/PanBook)[annProg](https://github.com/annProg) 开发并维护的基于 Markdown 写作的工作流,收录了 ElegantBook 和 ElegantPaper 模板。
------- -------
# ElegantBook: An Elegant LaTeX Template for Books # ElegantBook: 优美的 LaTeX 书籍模板 An Elegant LaTeX Template for Books
ElegantBook is designed for writing books, created by [Dongsheng Deng](https://ddswhu.me/) and [Liam Huang](https://liam.page/). Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or contact us at elegantlatex2e@gmail.com. ElegantBook 是为 LaTeX 书籍写作而设计的模板,由 [Ethan Deng](https://github.com/EthanDeng) 和 [Liam Huang](https://github.com/Liam0205) 创立,现在主要由 [Ethan Deng](https://github.com/EthanDeng)、[乙醇](https://github.com/syvshc)和[死抠](https://github.com/sikouhjw)维护。如果你有其他问题、建议或者报告 bug可以提交 issues 或者加入我们的 QQ 用户交流群692108391。
## Important Notes ElegantBook is designed for writing books, created by [Ethan Deng](https://github.com/EthanDeng) and [Liam Huang](https://github.com/Liam0205), and maintained by [Ethan Deng](https://github.com/EthanDeng), [syvshc](https://github.com/syvshc) and [sikouhjw](https://github.com/sikouhjw). Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or contact us at elegantlatex2e@gmail.com.
**Version Note**: Users for 2.x, please refer to [Version Convert](https://github.com/ElegantLaTeX/ElegantBook/wiki/convert). We strongly recommend that you use the latest version.
**Important Info**: For some reasons, __unauthorial__ pull requests are **UNACCEPTABLE** since May 20, 2019. For those who want to help revise the templates, submit issues or clone to your own repository to modify under the LPPL-1.3c.
## Acknowledgement
_News_: _The number of stars on Github for ElegantBook reached 100 on May 20, 2019_.
Thank ChinaTeX and [LaTeX Studio](http://www.latexstudio.net/) for their promotion. LaTeX studio offers tons of valuable posts and templates for discovery. It is the most comprehensive website on LaTeX in China. If you like our template, star on Github for supporting us.
## Donation
To express your love for our templates and/or our developers, please do not hesitate to tip us. Since last release of 3.08, we have received about a thousand RMB! (The emergence of a millionaire is on the way. Loading... )
![](https://github.com/ElegantLaTeX/ElegantBook/wiki/donate.jpg)
The explanation right of the tip usage belongs to ElegantLaTeX with no supervision. Feel free to tip us. Those who donate more than 10 RMB will be recorded in the Donation List. Thank all the tippers! Thank you all.
| Tipper | Amount | Date | Channel | **本模板自 2023 年 1 月 1 日开始,不再维护,不建议使用本系列模板!为了保证之前版本的用户仍然能查到说明文档,本说明文档仍然保留过去的信息。**
| :--------------: | :----: | :-------: | :-----: |
| Lerh | 10 RMB | 2019/5/15 | Wechat | **Caution: This template will no longer be maintained since January 1st, 2023.**
| YueGuoDiPingXian | 10 RMB | 2019/5/15 | Wechat |
| YinSang | 20 RMB | 2019/5/27 | Wechat | ## 致谢 Acknowledgement
| * Kong | 10 RMB | 2019/05/30 | Wechat |
| [latexstudio.net](http://www.latexstudio.net) | 666 RMB | 2019/06/05 | Alipay |
| Cassis | 11 RMB | 2019/06/30 | Wechat |
| * Jun | 10 RMB | 2019/07/23 | Wechat |
| P*u | 50 RMB | 2019/07/30 | Wechat |
| * Meng | 19 RMB | 2019/08/28 | Wechat |
| QuDouDou | 10 RMB | 2019/08/28 | Wechat |
| LI Bo | 100 RMB | 2019/10/06 | Wechat |
| Njustsll | 10 RMB | 2019/10/11 | Wechat |
| LIU ZhiKuo | 99.99 RMB | 2019/10/15 | Alipay |
| * Tao | 16 RMB | 2019/10/17 | Wechat |
| ChiHong | 12 RMB | 2019/10/17 | Alipay |
| YuanFengJing | 10 RMB | 2019/10/28 | Wechat |
| GUO DeLiang | 88 RMB | 2019/11/03 | Wechat |
| ZiQiangBuXi | 20 RMB | 2019/11/03 | Alipay |
| DuShuZhiChong | 20 RMB | 2019/11/18 | Wechat |
| * Deng | 10 RMB | 2019/11/18 | Wechat |
| * Zhe | 20 RMB | 2019/11/18 | Wechat |
## License 特别感谢 [sikouhjw](https://github.com/sikouhjw) 和 [syvshc](https://github.com/syvshc) 长期以来对于 Github 上 issue 的快速回应,以及各个社区论坛对于 ElegantLaTeX 相关问题的回复。特别感谢 ChinaTeX 以及 [LaTeX 工作室](http://www.latexstudio.net/)对于本系列模板的大力宣传与推广。
Thank [sikouhjw](https://github.com/sikouhjw) and [syvshc](https://github.com/syvshc) for their quick response to Github issues and continuously support work for ElegantLaTeX community. Thank ChinaTeX and [LaTeX Studio](http://www.latexstudio.net/) for their promotion.
## 协议 License
本模板发布遵循 LaTeX 项目公共许可证 1.3 c 或更高版本。
如果是衍生作品请务必加入协议声明和模板信息github、CTAN 地址)。
This work is released under the LaTeX Project Public License, v1.3c or later. This work is released under the LaTeX Project Public License, v1.3c or later.
## Derivative Works ## 衍生品 Derivative Works
+ [ElegantBookdown](https://github.com/XiangyunHuang/ElegantBookdown)[XiangyunHuang](https://github.com/XiangyunHuang) developed a Bookdown template based on ElegantBook. + [ElegantBookdown](https://github.com/XiangyunHuang/ElegantBookdown)[XiangyunHuang](https://github.com/XiangyunHuang) 开发并维护的基于 ElegantBook 的 Bookdown 模板。
+ [bookdownplus](https://github.com/pzhaonet/bookdownplus): maintained by [pzhaonet](https://github.com/pzhaonet). + [bookdownplus](https://github.com/pzhaonet/bookdownplus):应网友要求,[pzhaonet](https://github.com/pzhaonet) 在 bookdownplus 收录了 ElegantPaper 模板,并为 Mac 做了字体适配。
+ [PanBook](https://github.com/annProg/PanBook)a markdown-based writing workflow Developed by [annProg](https://github.com/annProg). + [PanBook](https://github.com/annProg/PanBook)[annProg](https://github.com/annProg) 开发并维护的基于 Markdown 写作的工作流,收录了 ElegantBook 和 ElegantPaper 模板。

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

BIN
image/scatter.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

View File

@@ -1,27 +0,0 @@
# This file is the source file of the scatter.pdf
# source page: https://matplotlib.org/gallery/shapes_and_collections/scatter.html
import numpy as np
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
np.random.seed(19680801)
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = (30 * np.random.rand(N))**2 # 0 to 15 point radii
ax = plt.subplot(111)
ax.scatter(x, y, s=area, c=colors, alpha=0.5)
# Hide the right and top spines
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
# Only show ticks on the left and bottom spines
ax.yaxis.set_ticks_position('left')
ax.xaxis.set_ticks_position('bottom')
plt.savefig('scatter.pdf', transparent=True)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB