<img src="assets/images/matplotex_logo.png" height="50" /> Matplotex

[**Matplotex**](https://hexdocs.pm/matplotex/Matplotex.html)

The sample plots generated using <font color="darkblue"> Matplotex</font> are shown below.

Line plotScater plot

HistogramSpline

Bar chartPie chart

Installation

The package can be installed by adding <font color="darkblue"> Matplotex</font> to your list of dependencies in mix.exs.

def deps do
[
    {:matplotex, "~> 0.4.71" }
]

Sample SVG generation

x = [1, 3, 7, 4, 2, 5, 6]
y = [1, 3, 7, 4, 2, 5, 6]

frame_width = 8
frame_height = 6
size = {frame_width, frame_height}
margin = 0.05
font_size = "16pt"
title_font_size = "18pt"
ticks = [1, 2, 3, 4, 5, 6, 7]

x
|> Matplotex.plot(y)
|> Matplotex.figure(%{figsize: size, margin: margin})
|> Matplotex.set_title("The Plot Title")
|> Matplotex.set_xlabel("X Axis")
|> Matplotex.set_ylabel("Y Axis")
|> Matplotex.set_xticks(ticks)
|> Matplotex.set_yticks(ticks)
|> Matplotex.set_rc_params(
  x_tick_font_size: font_size,
  y_tick_font_size: font_size,
  title_font_size: title_font_size,
  x_label_font_size: font_size,
  y_label_font_size: font_size,
  title_font_size: title_font_size
)
|> Matplotex.show()

Roadmap: What's Coming Next

We are actively working on the following improvements and additions for the <font color="darkblue"> Matplotex</font> library:

Upcoming Features for Matplotex:

Additionally, we are focused on expanding the library with a variety of new chart types to enhance its functionality and versatility. The upcoming <font color="darkblue"> Matplotex</font> version will also include the official Hex package, featuring all the basic chart types!!!

Contribution

We welcome all contributions to improve the <font color="darkblue"> Matplotex</font> project! Here are some key ways you can contribute:

Steps to Contribute

  1. Fork the repository.
  2. Create a new branch.
    git checkout -b feature-name
  3. Make your changes.
  4. Add your changes to the branch.
    git add <changed files>
  5. Commit your changes.
    git commit -m &#39;Add new feature&#39; 
  6. Push to the branch.
    git push origin feature-name 
  7. Open a Pull Request.
**Happy Contributing !!!**