Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

### powerful plotting library built on the popular Matplotlib

> before running the library, it is necessary to configure the backend.
> Details: https://matplotlib.org/users/customizing.html
Examples: $cat ~/.matplotlib/matplotlibrc
```
backend: TkAgg
```

![image](https://github.com/guenchi/Matplotlib/blob/master/img/Figure_1.png)

```
Expand Down
12 changes: 5 additions & 7 deletions pyplot.sc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
; MIT License

; Copyright guenchi (c) 2018 - 2019
; Copyright guenchi (c) 2018 - 2019

; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:

; The above copyright notice and this permission notice shall be included in all
; copies or substantial portions of the Software.

; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand All @@ -38,12 +38,10 @@
(only (darkart py ffi) py/run-simple-string))


(define plt
(define plt
(begin
(py/run-simple-string "import sys")
(py/run-simple-string "sys.argv = ['']")
(py/run-simple-string "import matplotlib")
(py/run-simple-string "matplotlib.use('TkAgg')")
(py-import 'matplotlib.pyplot)))


Expand Down