From 264dc8a9f40b00c10cd92e212369d79cc149dede Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 12:54:51 +0530 Subject: [PATCH 01/24] image layout --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 18ae6ff..4a230a0 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,18 @@ The sample plots generated using **Matplotex** are shown below. - - +
+
+
+
+
+
+
+
## Installation From de13253cd8aa5223b4c700fa66c2e3261ddaeb27 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 12:59:44 +0530 Subject: [PATCH 02/24] layout --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4a230a0..613d9b9 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,16 @@ The sample plots generated using **Matplotex** ar
+
+
+
+
From 6850680292e322ba7bf82f4c66222a1d3130bc9c Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 13:04:26 +0530 Subject: [PATCH 03/24] flex --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 613d9b9..928c18b 100644 --- a/README.md +++ b/README.md @@ -8,20 +8,20 @@ The sample plots generated using **Matplotex** are shown below. -
+
- +Bar chart
- +Pie chart
-
+
- +Line plot
- +Scater plot
From ff99d22b0de4830c977ed3376989d9ab119347ff Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 13:11:37 +0530 Subject: [PATCH 04/24] cheecky way --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 928c18b..497cabe 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Matplotex + **Matplotex** is a lightweight and efficient library for Elixir projects that facilitates server-side SVG generation for data visualization. Designed to integrate seamlessly with Phoenix LiveView, it serves as a powerful tool for creating dynamic visualizations in web applications. Below are the key benefits and extended use cases of **Matplotex**: **Matplotex** is a lightweight and efficient library for Elixir projects that facilitates server-side SVG generation for data visualization. Designed to integrate seamlessly with Phoenix LiveView, it serves as a powerful tool for creating dynamic visualizations in web applications. Below are the key benefits and extended use cases of **Matplotex**: - **Server-side SVG Generation:** **Matplotex** enables the creation of larger, complex plots on the server, ensuring smooth performance on client-side devices with limited memory. From c867bae03370d48460a3c1e1ad56b5954fa12698 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 13:25:33 +0530 Subject: [PATCH 05/24] no response --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 497cabe..928c18b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Matplotex - **Matplotex** is a lightweight and efficient library for Elixir projects that facilitates server-side SVG generation for data visualization. Designed to integrate seamlessly with Phoenix LiveView, it serves as a powerful tool for creating dynamic visualizations in web applications. Below are the key benefits and extended use cases of **Matplotex**: **Matplotex** is a lightweight and efficient library for Elixir projects that facilitates server-side SVG generation for data visualization. Designed to integrate seamlessly with Phoenix LiveView, it serves as a powerful tool for creating dynamic visualizations in web applications. Below are the key benefits and extended use cases of **Matplotex**: - **Server-side SVG Generation:** **Matplotex** enables the creation of larger, complex plots on the server, ensuring smooth performance on client-side devices with limited memory. From 6ccde1d9eb34139ae5e1fa6ddfb090d32c9005f0 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 14:47:17 +0530 Subject: [PATCH 06/24] pie and bar --- assets/images/bar_readme.svg | 1297 ++++++++++++++++++---------------- assets/images/pie_readme.svg | 187 +++-- lib/matplotex/helpers.ex | 15 + 3 files changed, 799 insertions(+), 700 deletions(-) diff --git a/assets/images/bar_readme.svg b/assets/images/bar_readme.svg index b39f34f..161c0ec 100644 --- a/assets/images/bar_readme.svg +++ b/assets/images/bar_readme.svg @@ -1,644 +1,687 @@ - - - - - - - - Africa - - - - - - - - Asia - - - - - - - - Europe - - - - - - - - North America - - - - - - - - Oceania - - - - - - - - South America - - - - - - - - 200 - - - - - - - - 400 - - - - - - - - 600 - - - - - - - - 800 - - - - - - - - 1000 - - - - - - - - 1200 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Continents - - - Emission - - - Continentwise Cumulative Emissions from 2008 to 2011 - + + + + + + + + Lorem + + + + + + + + + Ipsum + + + + + + + + + Amet + + + + + + + + + Donor + + + + + + + + + 0.0 + + + + + + + + + 14.0 + + + + + + + + + 28.0 + + + + + + + + + 42.0 + + + + + + + + + 56.0 + + + + + + + + + 70.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + type="" + stroke="black" + fill="#EE3377" + x="747.84" + y="61.44" + width="7.359999999999998" + height="7.359999999999998" + stroke-width="2" + stroke-opacity="1.0" + fill-opacity="1.0" + filter=""> + + + Eiusmod + + + + + + + Tempor + + + + + + + + + type="figure.bar" + stroke="#EE3377" + fill="#EE3377" + x="673.7900000000001" + y="288.0342857142857" + width="33.599999999999994" + height="222.16571428571427" + stroke-width="2" + stroke-opacity="1.0" + fill-opacity="1.0" + filter=""> + type="figure.bar" + stroke="#0077BB" + fill="#0077BB" + x="134.81" + y="163.88285714285715" + width="33.599999999999994" + height="346.3171428571428" + stroke-width="2" + stroke-opacity="1.0" + fill-opacity="1.0" + filter=""> + type="figure.bar" + stroke="#0077BB" + fill="#0077BB" + x="303.27000502049924" + y="98.53999999999999" + width="33.599999999999994" + height="411.65999999999997" + stroke-width="2" + stroke-opacity="1.0" + fill-opacity="1.0" + filter=""> + type="figure.bar" + stroke="#0077BB" + fill="#0077BB" + x="471.73001004099854" + y="124.67714285714285" + width="33.599999999999994" + height="385.5228571428571" + stroke-width="2" + stroke-opacity="1.0" + fill-opacity="1.0" + filter=""> + type="figure.bar" + stroke="#0077BB" + fill="#0077BB" + x="640.19" + y="118.14285714285714" + width="33.599999999999994" + height="392.0571428571428" + stroke-width="2" + stroke-opacity="1.0" + fill-opacity="1.0" + filter=""> - - + + \ No newline at end of file diff --git a/assets/images/pie_readme.svg b/assets/images/pie_readme.svg index 11670fe..40296ae 100644 --- a/assets/images/pie_readme.svg +++ b/assets/images/pie_readme.svg @@ -1,5 +1,5 @@ - Asias Emission distribution(2008-2011) + - - - - + + + + + - 2008-26.35% + Lorem-22.73% - 2009-24.5% + Ipsum-31.82% - 2010-24.92% + Donor-18.19% - 2011-24.25% + Bit-18.19% + + + + + + + Amet-9.1% diff --git a/lib/matplotex/helpers.ex b/lib/matplotex/helpers.ex index 61cc451..174c00b 100644 --- a/lib/matplotex/helpers.ex +++ b/lib/matplotex/helpers.ex @@ -309,6 +309,21 @@ defmodule Matplotex.Helpers do |> copy() end + def rdpie() do + # Percentages for each slice + sizes = [25, 35, 20, 20, 10] + # Labels for each slice + labels = ["Lorem", "Ipsum", "Donor", "Bit", "Amet"] + # Colors for the slices + colors = ["#33BBEE", "#EE7733", "#EE3377", "#EE3377","#008080"] + + sizes + |> Matplotex.pie(colors: colors, labels: labels) + |> Matplotex.set_rc_params(%{line_width: 1, legend_width: 0.25}) + |> Matplotex.show() + |>copy() + end + def hist() do values = Nx.Random.key(12) |> Nx.Random.normal(0, 1, shape: {1000}) |> elem(0) |> Nx.to_list() bins = 100 From bd29bd468fd809c87ac77d4572dafea21202e549 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 15:01:27 +0530 Subject: [PATCH 07/24] scatter --- assets/images/scatter_plot_readme.svg | 23673 +++++++++++++++++++++--- lib/matplotex/helpers.ex | 13 + 2 files changed, 20926 insertions(+), 2760 deletions(-) diff --git a/assets/images/scatter_plot_readme.svg b/assets/images/scatter_plot_readme.svg index 65411bb..17d31a8 100644 --- a/assets/images/scatter_plot_readme.svg +++ b/assets/images/scatter_plot_readme.svg @@ -1,2766 +1,20919 @@ - - - - - - - - 0.01 - - - - - - - - 0.18 - - - - - - - - 0.35 - - - - - - - - 0.52 - - - - - - - - 0.69 - - - - - - - - 0.86 - - - - - - - - 46.23 - - - - - - - - 72.23 - - - - - - - - 98.23 - - - - - - - - 124.23 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + -3.55 + + + + + + + + + -2.72 + + + + + + + + + -1.89 + + + + + + + + + -1.07 + + + + + + + + + -0.24 + + + + + + + + + 0.59 + + + + + + + + + 1.42 + + + + + + + + + 2.24 + + + + + + + + + 3.07 + + + + + + + + + 3.9 + + + + + + + + + -3.35 + + + + + + + + + -1.79 + + + + + + + + + -0.23 + + + + + + + + + 1.32 + + + + + + + + + 2.88 + + + + + + + + + 4.43 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Photon density - - - Photon energy - - - Photon density and photon energy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + fill="black" + x="424.9" + y="547.2" + font-size="12" + font-weight="normal" + font-family="Arial, Verdana, sans-serif" + font-style="normal" + transform="" + dominant-baseline="middle" + text-anchor="middle" + > + + + + + + + + + + + + + + Amet + + + + + + + + Donor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/matplotex/helpers.ex b/lib/matplotex/helpers.ex index 174c00b..fa151f3 100644 --- a/lib/matplotex/helpers.ex +++ b/lib/matplotex/helpers.ex @@ -216,6 +216,19 @@ defmodule Matplotex.Helpers do |> copy() end + def minscatter() do + x= Nx.Random.key(12) |> Nx.Random.normal(0, 1, shape: {1000}) |> elem(0) |> Nx.to_list() + y1 = Nx.Random.key(13) |> Nx.Random.normal(0, 1, shape: {1000}) |> elem(0) |> Nx.to_list() + y2 = Nx.Random.key(14) |> Nx.Random.normal(0, 1, shape: {1000}) |> elem(0) |> Nx.to_list() + x + |>Matplotex.scatter(y1, color: "#EE3377", x_label: "", y_label: "", label: "Amet") + |>Matplotex.scatter(x,y2, color: "#0077BB", x_label: "", y_label: "", label: "Donor") + |>Matplotex.show() + |>copy() + + + end + def multi_bar() do categories = ["apple", "banana", "fig", "avocado"] values1 = [22, 33, 28, 34] From 4589f0da565b67277f9e995b63dd059033482134 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 15:25:29 +0530 Subject: [PATCH 08/24] spline and line --- assets/images/hist_readme.svg | 0 assets/images/line_plot_readme.svg | 6267 +++++++++++++++++++++++++--- assets/images/splline_readme.svg | 877 ++++ lib/matplotex/helpers.ex | 38 + 4 files changed, 6697 insertions(+), 485 deletions(-) create mode 100644 assets/images/hist_readme.svg create mode 100644 assets/images/splline_readme.svg diff --git a/assets/images/hist_readme.svg b/assets/images/hist_readme.svg new file mode 100644 index 0000000..e69de29 diff --git a/assets/images/line_plot_readme.svg b/assets/images/line_plot_readme.svg index 9f20ee6..b456989 100644 --- a/assets/images/line_plot_readme.svg +++ b/assets/images/line_plot_readme.svg @@ -1,555 +1,5852 @@ - - - - - - - - 2008 + + + + + + + + 0.0 + + + + + + + 1.11 + + + - - - - 2009 + type="figure.x_tick" + x1="273.54999506632487" + y1="510.2" + x2="273.54999506632487" + y2="515.1999999999999" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + 2.22 + + + + + + + 3.33 + + + - - - - 2010 + type="figure.x_tick" + x1="397.72332346598307" + y1="510.2" + x2="397.72332346598307" + y2="515.1999999999999" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + 4.44 + + + + + + + 5.56 + + + - - - - 2011 + type="figure.x_tick" + x1="521.8966404215495" + y1="510.2" + x2="521.8966404215495" + y2="515.1999999999999" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + 6.67 + + + + + + + 7.78 + + + - - - - 17.31 + type="figure.x_tick" + x1="646.0699802652995" + y1="510.2" + x2="646.0699802652995" + y2="515.1999999999999" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + 8.89 + + + + + + + 10.0 + + + - - - - 17.6 + type="figure.y_tick" + x1="118.33333333333333" + y1="487.33" + x2="113.33333333333334" + y2="487.33" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + -22.95 + + + + + + + -14.03 + + + - - - - 17.89 + type="figure.y_tick" + x1="118.33333333333333" + y1="281.4999981689453" + x2="113.33333333333334" + y2="281.4999981689453" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + -5.1 + + + + + + + 3.82 + + + - - - - 18.18 + type="figure.y_tick" + x1="118.33333333333333" + y1="75.66999633789061" + x2="113.33333333333334" + y2="75.66999633789061" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + 12.74 + + + - - - - 18.47 - + type="figure.h_grid" + x1="118.33333333333333" + y1="384.41499908447264" + x2="739.1999999999999" + y2="384.41499908447264" + fill="rgba(0,0,0,0)" + stroke="#ddd" + stroke-width="1" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - Years + type="spine.bottom" + x1="118.33333333333333" + y1="510.2" + x2="739.1999999999999" + y2="510.2" + fill="rgba(0,0,0,0)" + stroke="black" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + - Emission + fill="black" + x="48.0" + y="281.5" + font-size="12" + font-weight="normal" + font-family="Arial, Verdana, sans-serif" + font-style="normal" + transform="rotate(-90, 48.0, 281.5)" + dominant-baseline="middle" + text-anchor="middle" + > + - United states's Emission (2008 - 2011) + fill="black" + x="444.8333333333333" + y="33.800000000000004" + font-size="18" + font-weight="normal" + font-family="Arial, Verdana, sans-serif" + font-style="normal" + transform="" + dominant-baseline="auto" + text-anchor="middle" + > + + + + + + + + Tarus + + + + + + + + Ipsum + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + type="plot.line" + x1="228.39606074062982" + y1="290.5216417544942" + x2="234.04030222288765" + y2="385.86943940589913" + fill="#EE3377" + stroke="#EE3377" + stroke-width="2" + shape-rendering="geometricPrecision" + stroke-linecap="square" + stroke-dasharray="" + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/images/splline_readme.svg b/assets/images/splline_readme.svg new file mode 100644 index 0000000..8c35ec9 --- /dev/null +++ b/assets/images/splline_readme.svg @@ -0,0 +1,877 @@ + + + + + + + + + 0.0 + + + + + + + + + 1.11 + + + + + + + + + 2.22 + + + + + + + + + 3.33 + + + + + + + + + 4.44 + + + + + + + + + 5.56 + + + + + + + + + 6.67 + + + + + + + + + 7.78 + + + + + + + + + 8.89 + + + + + + + + + 10.0 + + + + + + + + + -30.0 + + + + + + + + + -18.0 + + + + + + + + + -6.0 + + + + + + + + + 6.0 + + + + + + + + + 18.0 + + + + + + + + + 30.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/matplotex/helpers.ex b/lib/matplotex/helpers.ex index fa151f3..850191e 100644 --- a/lib/matplotex/helpers.ex +++ b/lib/matplotex/helpers.ex @@ -384,6 +384,44 @@ defmodule Matplotex.Helpers do |> Matplotex.show() |> copy() end + def rdspline() do + x = Nx.linspace(0, 10, n: 100)|> Nx.to_list() + y1 = Nx.Random.key(12) |> Nx.Random.normal(0, 10, shape: {100}) |> elem(0) |> Nx.to_list() + y2 = Nx.Random.key(13) |> Nx.Random.normal(0, 10, shape: {100}) |> elem(0) |> Nx.to_list() + + Matplotex.spline(x, y1, x_label: "", y_label: "", edge_color: "#919D41", line_width: 3) + |>Matplotex.spline(x,y2, x_label: "", y_label: "", edge_color: "#008080", line_width: 3) + |> Matplotex.set_ylim({-30, 30}) + |> Matplotex.show() + |> copy() + end + def minhist() do + values = Nx.Random.key(12) |> Nx.Random.normal(0, 1, shape: {1000}) |> elem(0) |> Nx.to_list() + bins = 100 + + Matplotex.hist(values, bins, + x_label: "", + y_label: "", + color: "#EE7733", + edge_color: "#EE7733" + ) + |> Matplotex.set_ylim({0, 50}) + |> Matplotex.show() + |> copy() + end + + def line_n() do + x = Nx.linspace(0, 10, n: 100)|> Nx.to_list() + y1 = Nx.Random.key(12) |> Nx.Random.normal(0, 10, shape: {100}) |> elem(0) |> Nx.to_list() + y2 = Nx.Random.key(13) |> Nx.Random.normal(0, 10, shape: {100}) |> elem(0) |> Nx.to_list() + + x + |> Matplotex.plot(y1, color: "#EE3377", x_label: "", y_label: "", label: "Tarus") + |> Matplotex.plot(x,y2, color: "#0077BB", x_label: "", y_label: "", label: "Ipsum") + |> Matplotex.show() + |> copy() + end + def multi_spline() do x_nx = Nx.linspace(0, 10, n: 100) From 502952a8b668b7baff4cb8228da96d68bebcf408 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 15:53:39 +0530 Subject: [PATCH 09/24] hist --- README.md | 8 + assets/images/hist_readme.svg | 2167 +++++++++++++++++++++++++++++++++ 2 files changed, 2175 insertions(+) diff --git a/README.md b/README.md index 928c18b..a078654 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,14 @@ The sample plots generated using **Matplotex** ar Scater plot
+
+
+Histogram +
+
+Spline +
+
## Installation diff --git a/assets/images/hist_readme.svg b/assets/images/hist_readme.svg index e69de29..ac857c7 100644 --- a/assets/images/hist_readme.svg +++ b/assets/images/hist_readme.svg @@ -0,0 +1,2167 @@ + + + + + + + + + -4.0 + + + + + + + + + -3.11 + + + + + + + + + -2.22 + + + + + + + + + -1.33 + + + + + + + + + -0.44 + + + + + + + + + 0.44 + + + + + + + + + 1.33 + + + + + + + + + 2.22 + + + + + + + + + 3.11 + + + + + + + + + 4.0 + + + + + + + + + 0.0 + + + + + + + + + 10.0 + + + + + + + + + 20.0 + + + + + + + + + 30.0 + + + + + + + + + 40.0 + + + + + + + + + 50.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From b90e934bbb4f2ac5f880e3b6dff6ab2d482acf9e Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 15:55:23 +0530 Subject: [PATCH 10/24] spline --- assets/images/{splline_readme.svg => spline_readme.svg} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename assets/images/{splline_readme.svg => spline_readme.svg} (100%) diff --git a/assets/images/splline_readme.svg b/assets/images/spline_readme.svg similarity index 100% rename from assets/images/splline_readme.svg rename to assets/images/spline_readme.svg From 04495e3e7c7b9f489b84093ad72ffbf44fd4735d Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 16:01:27 +0530 Subject: [PATCH 11/24] layout correct --- README.md | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index a078654..9801460 100644 --- a/README.md +++ b/README.md @@ -9,28 +9,22 @@ The sample plots generated using **Matplotex** are shown below.
-
-Bar chart -
-
-Pie chart -
+

+Bar chart +Pie chart +

-
-Line plot -
-
-Scater plot -
+

+Line plot +Scater plot +

-
-Histogram -
-
-Spline -
+

+Histogram +Spline +

## Installation From 1b3d9939f22c7bc8c217ce0db34241c3c45cdd2f Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 16:05:41 +0530 Subject: [PATCH 12/24] correction --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9801460..bd2cdf3 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ The sample plots generated using **Matplotex** ar

-

-Line plot +

+Line plot Scater plot

From 4762eb0d2d202ce12449ed2e3efcfe36237cde21 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 16:07:02 +0530 Subject: [PATCH 13/24] realign --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bd2cdf3..e6a9dcf 100644 --- a/README.md +++ b/README.md @@ -8,18 +8,20 @@ The sample plots generated using **Matplotex** are shown below. -
-

-Bar chart -Pie chart -

-
+

Line plot Scater plot

+ +
+

+Bar chart +Pie chart +

+

Histogram From 6055b8ba8e24068914598d5be95cdeadd8e6a00a Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 16:07:55 +0530 Subject: [PATCH 14/24] resize --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e6a9dcf..b2b5f25 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The sample plots generated using **Matplotex** ar

Bar chart -Pie chart +Pie chart

From 65f751fc6ef63d34a8af93208531a5a88b0e9eda Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 17:07:08 +0530 Subject: [PATCH 15/24] resize --- README.md | 14 ++-- assets/images/pie_readme.svg | 130 +++++++++++++++++------------------ 2 files changed, 73 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index b2b5f25..dd5f4b0 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,6 @@ The sample plots generated using **Matplotex** ar

-
-

-Bar chart -Pie chart -

-

Histogram @@ -29,6 +23,14 @@ The sample plots generated using **Matplotex** ar

+
+

+Bar chart +Pie chart +

+
+ + ## Installation The package can be installed by adding **Matplotex** to your list of dependencies in `mix.exs`. diff --git a/assets/images/pie_readme.svg b/assets/images/pie_readme.svg index 40296ae..578fd6e 100644 --- a/assets/images/pie_readme.svg +++ b/assets/images/pie_readme.svg @@ -1,5 +1,5 @@ - - - - - - Date: Fri, 17 Jan 2025 17:09:07 +0530 Subject: [PATCH 16/24] correct --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd5f4b0..5597325 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The sample plots generated using **Matplotex** ar

Bar chart -Pie chart +Pie chart

From 57892b835f59c34bbad47f3da7806b15fc1c55cb Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 17:14:02 +0530 Subject: [PATCH 17/24] resize --- assets/images/pie_readme.svg | 130 +++++++++++++++++------------------ 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/assets/images/pie_readme.svg b/assets/images/pie_readme.svg index 578fd6e..94d57d7 100644 --- a/assets/images/pie_readme.svg +++ b/assets/images/pie_readme.svg @@ -1,5 +1,5 @@ - - - - - - Date: Fri, 17 Jan 2025 17:15:08 +0530 Subject: [PATCH 18/24] resize readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5597325..3310238 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ The sample plots generated using **Matplotex** ar

-Bar chart -Pie chart +Bar chart +Pie chart

From b225b686b6bd45d883312ad0a7369ab0b1608a5f Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 17:16:08 +0530 Subject: [PATCH 19/24] repos --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3310238..dd5f4b0 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The sample plots generated using **Matplotex** ar

-Bar chart +Bar chart Pie chart

From 4ae4239d277cbfff0453f290c06e5700096343e4 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 17:38:30 +0530 Subject: [PATCH 20/24] remove legend --- assets/images/bar_readme.svg | 136 +- assets/images/line_plot_readme.svg | 1374 ++++---- assets/images/scatter_plot_readme.svg | 4174 ++++++++++++------------- 3 files changed, 2756 insertions(+), 2928 deletions(-) diff --git a/assets/images/bar_readme.svg b/assets/images/bar_readme.svg index 161c0ec..443e751 100644 --- a/assets/images/bar_readme.svg +++ b/assets/images/bar_readme.svg @@ -11,9 +11,9 @@ - - - - Eiusmod - - - - - - - Tempor - - - - - - - Tarus - - - - - - - - Ipsum - - - - - - - - - Amet - - - - - - - - Donor - - - Date: Fri, 17 Jan 2025 17:39:58 +0530 Subject: [PATCH 21/24] pos --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd5f4b0..5597325 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The sample plots generated using **Matplotex** ar

Bar chart -Pie chart +Pie chart

From dfbeaf516720113d6238f637fac06cd9570780d5 Mon Sep 17 00:00:00 2001 From: Mohammed Sadique Date: Fri, 17 Jan 2025 17:46:15 +0530 Subject: [PATCH 22/24] resize --- assets/images/pie_readme.svg | 130 +++++++++++++++++------------------ 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/assets/images/pie_readme.svg b/assets/images/pie_readme.svg index 94d57d7..521bb1f 100644 --- a/assets/images/pie_readme.svg +++ b/assets/images/pie_readme.svg @@ -1,5 +1,5 @@ - - - - - - Date: Fri, 17 Jan 2025 17:48:56 +0530 Subject: [PATCH 23/24] resize --- assets/images/pie_readme.svg | 70 ++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/assets/images/pie_readme.svg b/assets/images/pie_readme.svg index 521bb1f..cf2bbcd 100644 --- a/assets/images/pie_readme.svg +++ b/assets/images/pie_readme.svg @@ -1,4 +1,4 @@ - - - - - - Date: Fri, 17 Jan 2025 17:58:45 +0530 Subject: [PATCH 24/24] hexurl --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5597325..77db540 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Matplotex - **Matplotex** is a lightweight and efficient library for Elixir projects that facilitates server-side SVG generation for data visualization. Designed to integrate seamlessly with Phoenix LiveView, it serves as a powerful tool for creating dynamic visualizations in web applications. Below are the key benefits and extended use cases of **Matplotex**: + [**Matplotex**](https://hexdocs.pm/matplotex/Matplotex.html) is a lightweight and efficient library for Elixir projects that facilitates server-side SVG generation for data visualization. Designed to integrate seamlessly with Phoenix LiveView, it serves as a powerful tool for creating dynamic visualizations in web applications. Below are the key benefits and extended use cases of **Matplotex**: + - **Server-side SVG Generation:** **Matplotex** enables the creation of larger, complex plots on the server, ensuring smooth performance on client-side devices with limited memory. - **Efficient Concurrent Processing :** Leveraging Elixir’s concurrency capabilities, **Matplotex** can handle multiple requests simultaneously, making it ideal for high-performance applications.