Plt2Img
De grΓ fics de Python a imatge, a l'instant
3
Plt2Img Converter
Plt2Img is a web tool that converts Matplotlib code into images. Ideal for developers and data scientists who want to generate visualizations from Python code without needing to run the code locally. With Plt2Img, you can simply upload your Matplotlib code and receive a ready-to-use image for reports, presentations and more
Supported libraries: π Matplotlib π’ Numpy πΌ Pandas π Seaborn π©πΎβπ¬ Scipy π Sympy
β²οΈ Save time
Steps | β οΈ Not using Plt2Img | π Using Plt2Img |
---|---|---|
1οΈβ£ | Generate a Matplolib code with ChatGPT | Generate a Matplolib code with ChatGPT |
2οΈβ£ | Go to the folder where the Python virtual environment (.venv) is located | Go to Plt2Img.online |
3οΈβ£ | Open a terminal | Paste the code and obtain the image |
4οΈβ£ | Activate Virtual Environment: source .venv/bin/activate | ππ½π΄ |
5οΈβ£ | Run Jupyter Notebook: jupyter notebook | ππ½π΄ |
6οΈβ£ | Create a Jupyter file, paste the code y obtain the image | ππ½π΄ |
Visit Plt2Img Converter to tested it!
βΆοΈ Video Demo
https://github.com/user-attachments/assets/cd868f9c-ec6c-4135-b8ea-bf6d025d2306
π Installation
Command | Action |
---|---|
git clone https://github.com/AlbertLnz/plt2img | Clone the repository |
cd plt2img | Enter to the project |
npm install | Install dependencies |
cd src/backend | Enter to the backend project |
docker build -t plt2img . | Run the Docker image |
docker run -d -p 5000:5000 --name plt2imgContainer plt2img | Run the Docker container with the image |
npm run dev | Starts local dev server at localhost:4321 |
Frontend is running at http://localhost:4321 |
---|
Backend is running at http://localhost:5000 |
---|
[!IMPORTANT] Remember to configure the correct fetch url in the
src/components/App.astro
file. Remember to stop the container that is running in 2nd plane when you are done.