News for hackers. Stuff that matters.
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Sunday September 26, 2021 @03:51PM (#28664043)
Hi HN, this project has been my life for the past few months, I hope some of you find it to be of use.

With MPLG you design plots, and when satisfied, export the Python code to further integrate into your existing data processing pipeline.

This is early stage software and naturally, there will be bugs and oversights. Nevertheless I wanted to share this with you to have a discussion about the value MPLG brings to the table. I would love to hear your constructive criticism.

There is a six month long free trial after which you can register with your student email address for a free license. But as MPLG is still in beta, there is no way to purchase a license.

Cheers,

Max

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by Y_Y on Monday September 27, 2021 @03:54AM (#28668182)
How about releasing the source? I know you want to sell licenses, but there are plenty of projects nowadays that dual-license so that e.g. commercial users pay, but others can still read/modify/compile the code.

(To be honest I didn't even know you could use GitHub to publicly serve a closed-source project.)

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @04:14AM (#28668288)
I very likely will. But that's just another thing to worry about and for my sanity I am deferring it. This is being developed alongside my study and two other jobs.
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by Y_Y on Monday September 27, 2021 @06:30AM (#28669065)
That's ambitious! Well the project looks cool, and I'd love to see it under a FOSS license. Much more important though is your health. I hope you're some kind of superhuman who can handle all that at once, but either way I think everyone's got to value their wellbeing over GitHub stars.
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by jhgb on Monday September 27, 2021 @12:43AM (#28667154)
I wonder, have you considered Vega output? (https://vega.github.io/vega)
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by jftuga on Sunday September 26, 2021 @05:23PM (#28664797)
Max,

Your website looks great.

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @03:37AM (#28668073)
Thanks for the kind reply jftuga!
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by xioxox on Monday September 27, 2021 @03:30AM (#28668038)
Interesting. I thought about writing a Matplotlib version of my Veusz GUI plotting package [1], but at the time Matplotlib was far too slow.

Veusz is quite nice in that the Python-based widget-based plotting library is the backend to the GUI. The saved documents are essentially the Python API calls used to recreate the plot. The plotting library holds the document as a tree of plotting widgets (e.g. axis, graph, function plot...) with a set of properties.

[1] https://veusz.github.io/

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @03:46AM (#28668123)
This looks very sophisticated, much more complex than MPLG. Very impressive! I also wonder why I didn't come across Veusz while doing market research.

A main goal of MPLG is to KISS so that users would open it up for the first time and they will be able to quickly jot down a plot design. This way they won't feel overwhelmed when needing to quickly create another plot sometime in the future, and be compelled to use MPLG.

Matplotlib is indeed very slow. But if you ever decide to write a matplotlib version of your package, get in touch, I'll explain how I designed MPLG and what you might want to avoid!

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by icegreentea2 on Sunday September 26, 2021 @07:01PM (#28665439)
Downloads points to like a git-lfs pointer or something?

   version https://git-lfs.github.com/spec/v1
   oid sha256:f53cea2b22f3343d76ca776c9378c212a6eeb1e67f4f8a26dc780d6247d7df38
   size 148824450
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by anon_12012020 on Sunday September 26, 2021 @07:40PM (#28665638)
"This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access."
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @03:08AM (#28667925)
Ah yes, I glossed over that! You can download MPLG from https://riverspirit.nl/mplg

I'll resubmit to show HN when I reach the first stable version.

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @03:46AM (#28668128)
Should be fixed now!
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by visarga on Monday September 27, 2021 @01:48AM (#28667464)
Great idea. I could never remember the incantations of matplotlib. Always copy pasting the boilerplate from SO.

The plt import variable looks more like a global var than a class instance, is this good design?

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by blix on Monday September 27, 2021 @12:59AM (#28667219)
This is a very interesting project! I love maplotlib but sometimes getting it to do what I want is an absolute chore. I may give this a shot with some of my next figures.
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @03:25AM (#28668010)
Great to hear, don't hesitate to get in touch with any questions you might have: [email protected]
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by wajsbrot on Monday September 27, 2021 @12:34PM (#28672814)
This is wonderful, I've been looking for a project like this for a while now. Thanks, I'll give it a try for the next couple of weeks.
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @01:40PM (#28673701)
This is encouraging! Don't hesitate to get in touch if you have any feedback: [email protected]
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by heisenzombie on Sunday September 26, 2021 @07:19PM (#28665526)
Oooh, you won me over with the placing text and labels part. That's great!
Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by version_five on Sunday September 26, 2021 @07:55PM (#28665711)
What I really liked about matlab was that you could programmatically generate figures and then modify them, by adding annotations etc. This seems like a logical thing for plotly or vega or one of the javascript python image libraries to add.

That said, I would not pay for this. Python has an awesome free and open source ecosystem, I cant imagine using pytorch, scikit learn, numpy, pandas etc for free then paying to annotate my plots.

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by dailyanchovy on Monday September 27, 2021 @03:37AM (#28668071)
I understand. I intended to charge for certain usage types only. MPLG will very likely be free for individuals, but you can buy a license to unlock the following (individually):

- educational features such as tooltips and explanations for common python and matplotlib functions;

- commercial use;

- educational use (as part of a curriculum).

- potentially, export to other languages (Julia).

Re:Show HN: MPLG – Matplotlib GUI, design plots visually and... by orbifold on Monday September 27, 2021 @04:34AM (#28668400)
You can do that with ROOT aswell.