How to pyqtgraph legend action grouping? - pyqtgraph

I run legend items in groups in pyqtgraph. Is this possible?
Can I toggle multiple plots by clicking on a legend in pyqtgraph?

PyQtGraph does not support grouping of items at present in the legend; it does support hiding individual plots by clicking on them.

Related

Can ggplot2 Produce Flowcharts?

I would like to draw a simple flowchart in R. As shown in the example below, I would like to be able to determine:
the shape of the boxes
the color of the boxes
the position of the boxes
the text within the boxes
the direction of the arrows between the boxes
the text beside the boxes
There are several packages, that are able to draw such a flowchart (e.g. DiagrammeR). However, I am wondering if this is possible with ggplot2, since I would like to use the ggplot2 themes etc.

Formatting the border between lattice panels in R

When making a multi-panel plot in lattice, each panel is by default bordered by a black line. I would like to be able to adjust the color and width of these panel borders. Bonus points if you can show how to add a colored border around specific panel(s).
For instance, this code makes a plot with three panels, one for each unique value of df$gears. Each panel is bordered by a black line.
library(lattice)
xyplot(mpg~hp|factor(gear), mtcars, layout=c(3,1), between=list(x=c(1))
,par.settings=list(axis.line=list(col="lightgray")))
This code almost does what I want. It changes the borders (and tick marks) of all panels to light gray. Is there a way to change the color of components independently (e.g., left and right axes)? Is there a way to address the formatting for each sub-panel independently?
Thanks,
Bryan

Formatting legend markers

I would like to represent legend items' markers as lines for my Lineseries and not as boxes(by default) . I have managed it through setting markerWidth and markerHeight in a Legend tag. However, I have not only lineseries, but also plot series in my chart, which has diamond form marker. So, whenever I squeeze the box to a form of line in my legend, my plot series' marker is getting ugly.So, my questions:
1.Is there any way to control legend items separatly without creating a legend manually, item by item?
if I add item by item, how can I get the same style for my marker as related series have? (e.g. same shape and color as item renderer)
The way I'd do it is to create a custom LegendItem subclass that has a custom property with a getter/setter pair that takes a value of type function. Then I'd provide a ClassFactory that supplies the function as the LegendItem for your Legend. You'd call the function within the LegendItem to figure out what renderer to make based on the series.
I forget exactly when you'd do this in the Flex life-cycle--I've been out of Flex for almost 2 years. It's possible that there's a smarter/simpler way to do this that I've also forgotten. But it should work.

Custom grid line in a Flex Chart?

I am using the standard Flex 3 BubbleChart component and I would like to customize a couple of the grid lines separately from the rest.
I would like to highlight a gridline in the X-direction as well as in the Y-direction to show a quadrant.
Is there any way to customize the look and feel of a subset of gridlines within a Flex chart (i.e. bubble chart)?
Any ideas or suggestions would be appreciated.
Thanks!
Check out this two nice articles:
Using chart grid lines
Drawing on chart controls

Is it possible to restrict flex bar chart y-axis count?

Is it possible to restrict flex bar chart y-axis count?
I have a very big name coming in my y-axis and i want to reduce or restrict it to 5 characters and on rollover i want to display it in full.
You can use the labelFunction of the axis. Check out the examples here: http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_06.html
You should easily be able to add a mouseOver event listener to put your tool tip on.

Resources