pothosware / PothosWidgets

Graphical widgets to supplement the Pothos GUI
https://github.com/pothosware/PothosWidgets/wiki
Boost Software License 1.0
6 stars 6 forks source link

Add format string to plots #32

Closed bjorksteinsson closed 9 years ago

bjorksteinsson commented 9 years ago

Plot titling would be better if it could be format stringed.

"Constellation: %1" <--- BPSK or QPSK.

guruofquality commented 9 years ago

This may seem contrived, but how-about a formatter block with a slot for arbitrary input and a signal for a formatted string? you would use it like this:

drop down [labelChanged] -> [arg]formatter[valueChanged] -> [setTitle]Constellation

guruofquality commented 9 years ago

With the evaluator block its possible to take the signal from the GUI control and append to it:

Evaluator expression: "Constellation: "//value

The evaluator’s trigger signal can be used to set the plot's title.