Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terasakisatoshi/matplotwrap.jl
[WIP] matplotplusplus for Julian
https://github.com/terasakisatoshi/matplotwrap.jl
Last synced: 3 days ago
JSON representation
[WIP] matplotplusplus for Julian
- Host: GitHub
- URL: https://github.com/terasakisatoshi/matplotwrap.jl
- Owner: terasakisatoshi
- License: mit
- Created: 2020-09-20T05:32:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T11:55:27.000Z (about 3 years ago)
- Last Synced: 2024-10-11T12:41:06.009Z (about 1 month ago)
- Language: Julia
- Homepage:
- Size: 291 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MatplotWrap.jl
- This repository aims to [Matplot++](https://github.com/alandefreitas/matplotplusplus) for [Julialang](https://julialang.org/) users, where
- Matplot++: A C++ Graphics Library for Data Visualization
- Julia: A fresh approach to technical computing- Our shared library that wraps C++ api is generated by [MatplotWrapBuilder.jl](https://github.com/terasakisatoshi/MatplotWrapBuilder.jl)
- It is tested on my macOS/Ubuntu(18.04) with Julia v1.5.2# Prerequisite
## Prepare environment
- install `gnuplot` via e.g. `brew install ...` or `apt-get install ...` etc..
- See [this instruction](https://github.com/alandefreitas/matplotplusplus#build-from-source) to learn more.## Install this repository
```console
$ git clone https://github.com/terasakisatoshi/MatplotWrap.jl
$ cd MatplotWrap
$ julia --project=@. -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
```- Our shared library `libmplxx` is downloaded automatically using Artifact system.
# Usage
See [examples](examples) directory
### Line Plot
![img](docs/readme_assets/line_plot.png)
### Scatter Plot
![img](docs/readme_assets/scatter_plot.png)
# Build libmplxx.so/dylib by yourself
- Linux users should update your gcc >= 8
- See [this instruction](https://github.com/alandefreitas/matplotplusplus#build-from-source)- Run the following command:
```console
$ make -C ./deps
```- Modify `libmplxx` variable inside of `src/MatplotWrap.jl`.
```julia
# Use this variable
const libmplxx = joinpath(@__DIR__, "..", "deps", "build", "lib", "libmplxx.$(dlext)")
```