From 22f5ac8fcec4dbfcc1f5033f18bc4eeca52a747d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 08:20:22 +0100 Subject: Made the side more retro! --- public/make-b-w-svg-charts-with-matplotlib.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'public/make-b-w-svg-charts-with-matplotlib.html') diff --git a/public/make-b-w-svg-charts-with-matplotlib.html b/public/make-b-w-svg-charts-with-matplotlib.html index 2ced17c..4772f65 100755 --- a/public/make-b-w-svg-charts-with-matplotlib.html +++ b/public/make-b-w-svg-charts-with-matplotlib.html @@ -1,9 +1,12 @@ -Make B/W SVG charts with matplotlib

Make B/W SVG charts with matplotlib

note, Aug 1, 2023 on Mitja Felicijan's blog

Install pip requirements.

pip install matplotlib
 pip install pandas
 

Example of data being used.

Epoch,Connect (NLB),Processing (NLB),Waiting (NLB),Total (NLB),Connect (ALB),Processing (ALB),Waiting (ALB),Total (ALB)
 1,57.7,315.7,309.4,321.6,9,104.4,98.3,105.7
@@ -45,7 +48,7 @@ This is how you get a column data with pandas.

The Python code responsible for # Export as SVG plt.savefig("plot.svg", format="svg") -

SVG Chart

The image above is SVG and you can zoom in and out and check that the image is vector.


Posts from blogs I follow around the net