Comments (8)
;-) that's what I suspected about Plplot.
Note that you can use ftxui::graph to plot some functions:
https://arthursonzogni.com/FTXUI/examples/?file=./dom/graph.js
Note as nice as plotille, but this one is already available.
from ftxui.
Hi!
I don't understand the question. Can Plplot output something that could be drawn inside a terminal, with a grid of characters?
Or maybe you would like to use brailles characters to have extra definition for plotting function like:
https://github.com/tammoippen/plotille
?
from ftxui.
From the Plplot site :
PLplot is a cross-platform software package for creating scientific plots whose (UTF-8) plot symbols and text are limited in practice only by what Unicode-aware system fonts are installed on a user's computer. The PLplot software, which is primarily licensed under the LGPL, has a clean architecture that is organized as a core C library, separate language bindings for that library, and separate device drivers that are dynamically loaded by the core library which control how the plots are presented in noninteractive and interactive plotting contexts.
Plplot is a terminal plotter, and it's honestly fantastic. Written in C but also has C++ bindings. In my oppinion is the best terminal plotting software. It would amazing if we could add plotting functions and embed them on FTXUI containers.
I'm not sure if this would be possible though, but if was, this would the ultimate solution!
from ftxui.
If enabling to use something like Plplot would be too out of bounds, maybe something like plotille would also do the job. I'm only suggesting Plplot because I have used it quite a bit, but I'm sure you know better what would make a complete real time plotting solution for FXTUI
from ftxui.
This doesn't seems hard to make an adapter that will draw the output of plplot into a ftxui::screen as a ftxui dom element.
I won't force anyone to pay the cost of embedding directly plplot into FTXUI, but that an use case I want for people to be easy to support. I can make a demo and make it public for other people to do it.
I don't see an image on internet showing the output of plplot into a terminal. Do you have one?
from ftxui.
Sounds great
I've been looking in to some old images taken when I was coding some plot functions and saved screenshots straight from a full screen terminal, but I don't have any where you can actually see the terminal. I'd just use some of the pictures available at the Plplot site, and I can make some detailed screenshots for you once I have it running again ? Let me know
from ftxui.
Taking a deeper look in to this, since I'm pretty sure you can plot to a terminal ... I just retrieved an old project and I used xwin to plot tho. Will get back to you
from ftxui.
sorry, got totally confused as it's been a good three years since I don't use Plplot and forgot that you can't plot to an actual terminal :) Maybe then, the correct way to do this would be something like plotille
from ftxui.
Related Issues (20)
- Is there an Event handling when CTRL+SHIFT+C is pressed? HOT 2
- From ftxui::Element to std::string or char* HOT 3
- focus problem HOT 2
- Untidy exit on std::terminate() HOT 1
- Do you have any recommended fonts? The font provided by windows is not very beautiful HOT 2
- How to highlight text inside ftxui::text() or ftxui::paragraph() HOT 1
- Is there a bug between full width characters and vertical?
- Running tests alters the terminal state HOT 2
- The scrollbar doesn't work in the "homescreen.cpp" demo HOT 3
- [feature request] Scatter plots HOT 1
- Dynamically adding elements to Checkboxes HOT 5
- Correctness of layout requirement for flexbox. Scrollbar implementation. HOT 1
- I've tried everything. I need help HOT 1
- Compression priority when rendering a vbox with inadequate space. HOT 2
- lifecycle problem HOT 2
- Final link failed: Bad value HOT 3
- Fix for Visual Studio color and bgcolor unresolved symbols HOT 1
- Modal windows, what am I doing wrong? HOT 2
- Catching events for nested components HOT 2
- window element with light border style
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftxui.