News for hackers. Stuff that matters.
Re:Brplot – plotting app/lib in C by branc116 on Friday February 09, 2024 @02:21PM (#39319192)
I've been working on this for a while now. Showing it here to see what will happen.
Re:Brplot – plotting app/lib in C by enriquto on Friday February 09, 2024 @06:08PM (#39321627)
I love this!

There is some slight friction (headless mode still seems to require imgui), but the plots look great and I may replace some of my gnuplot scripts with brplot. It seems much better integrated in a unix workflow.

Re:Brplot – plotting app/lib in C by branc116 on Saturday February 10, 2024 @06:39AM (#39325438)
Hmmm... I'm not sure about that. How did you build it?
Re:Brplot – plotting app/lib in C by dima55 on Friday February 09, 2024 @08:15PM (#39322499)
Thanks for the post. The obvious comparison is feedgnuplot: https://github.com/dkogan/feedgnuplot/

That works similarly in that it plots standard input. The backend is gnuplot, which is a double-edged sword: it's far more full-featured than brplot, but almost certainly is much slower also. I'll try out brplot to see if it would be a good replacement for cases where speed is important. Thanks!

Re:Brplot – plotting app/lib in C by squarefoot on Saturday February 10, 2024 @12:16AM (#39323795)
Also worth mentioning ploticus: https://ploticus.sourceforge.net
Re:Brplot – plotting app/lib in C by lf-non on Saturday February 10, 2024 @03:38AM (#39324602)
Interesting tool, but may not be a great choice for new users: All support and development halted in 2016.
Re:Brplot – plotting app/lib in C by branc116 on Saturday February 10, 2024 @06:37AM (#39325424)
I should make a table with all other plotters and compare them. That would be cool.
[dead]
Re:Brplot – plotting app/lib in C by tiffanyh on Friday February 09, 2024 @08:48PM (#39322724)
@dang

It seems like HN is getting robo-spam.

This comment, plus a few other comments in the last few minutes that I can’t seem to find now.

Just fyi.

Re:Brplot – plotting app/lib in C by eyegor on Friday February 09, 2024 @08:52PM (#39322752)
Why do the first dozen examples not have screenshots in the main readme? I thought maybe it was an issue on my end until I checked the raw view.
Re:Brplot – plotting app/lib in C by branc116 on Saturday February 10, 2024 @06:14AM (#39325308)
I didn't want to spam repo with too many imgs. But you are right It'd be cool to have then. But I should host those imgs somewhere else
Re:Brplot – plotting app/lib in C by scrubs on Sunday February 11, 2024 @04:57PM (#39339165)
Yah - you cannot elide the main point. Plots. A few. Put 'em in!
Re:Brplot – plotting app/lib in C by DarkCrusader2 on Saturday February 10, 2024 @02:28AM (#39324319)
For those wanting to try this out locally, you will need to fetch the git submodules after cloning. Other dependencies required to build are listed in the github workflow yaml definition.

Hope this saves someone some time as this is not mentioned in the readme. Cool project though.

Re:Brplot – plotting app/lib in C by lionkor on Saturday February 10, 2024 @05:13AM (#39325029)
sounds like it needs CMake+vcpkg like in this example starter of mine: https://github.com/lionkor/cpp-project-template
Re:Brplot – plotting app/lib in C by branc116 on Saturday February 10, 2024 @06:35AM (#39325409)
Yup. But from my expirance cmake only becomes useful when you want to compile something on multiple os-es. I have not compiled brplot on windows or on mac. Makefile is written with linux as host os in mind.

It'd be cool to have cmake build option. So that you could create vs proj on windows, xcode proj on mac.

I don't know what to think about vcpkg.

Re:Brplot – plotting app/lib in C by branc116 on Saturday February 10, 2024 @06:19AM (#39325324)
Requirments are a pain. On different distributions they are located in different packages. I should install top 20 most used distributions and try to build on that distributin. That would be quite a fun process.
Re:Brplot – plotting app/lib in C by DarkCrusader2 on Saturday February 10, 2024 @06:48AM (#39325486)
That's why I stick with Ubuntu (well Linux Mint actually). I have yet to run into a project or problem which didn't had instructions specifically for Ubuntu.

You can also explore building with Nix to be platform/distribution agnostic.

Re:Brplot – plotting app/lib in C by branc116 on Saturday February 10, 2024 @08:28AM (#39325984)
Isn't nix just for nixos?
Re:Brplot – plotting app/lib in C by pxc on Sunday February 11, 2024 @05:23AM (#39334004)
Nope! I use Nix on macOS every day. I also use it on Ubuntu.

On Linux-based operating systems, you can even use `nix bundle` to create Docker images or fat binaries that end users can run without having Nix installed. (This relies on Linux user namespaces, which is why it's a Linux-only feature.)