Skip to content

terasakisatoshi/MatplotWrap.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatplotWrap.jl

  • This repository aims to Matplot++ for Julialang 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

  • 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..

Install this repository

$ 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 directory

Line Plot

img

Scatter Plot

img

Build libmplxx.so/dylib by yourself

  • Linux users should update your gcc >= 8

  • Run the following command:

$ make -C ./deps
  • Modify libmplxx variable inside of src/MatplotWrap.jl.
# Use this variable
const libmplxx = joinpath(@__DIR__, "..", "deps", "build", "lib", "libmplxx.$(dlext)")