I'm running Inkscape 1.4 on Mac OS 12.7.6, Apple silicon, installed from dmg file. I generated the attached program in Python, using matplotlib.pyplot and saving the figure as svg. I'm trying to change the color of the large blue circles to red. Three of them (on the right) show what I've managed to achieve. I can change the fill with no problem, and when I try to change stroke color, the status bar at the bottom shows both fill and stroke are red, but the stroke is still blue (see screen show). I can confirm that this is the stroke by changing the stroke style--it's the blue circle that changes. How do I get stroke color to change?
The problem is that the circles are clones. If the original circle can be found then changing its fill and stroke will change all the clones colour as well. Normally this would be done as hinted in the status bar by SHIFT-D on a clone object to find the original. However there is a problem with this svg, SHIFT-D reports that the original is not on the canvas but defined in a <defs> statement. I had to go to the Edit > XML Editor (see image)
and drag the <path id="m0ebe547e67"> path out of the <defs and into the <g id="line2d_28" group. You will see a new circle appears on the canvas, this is the original circle, and fill/stroke changes of this circle will be reflected in all clones. But now you have an extra unwanted circle, it can be hidden underneath one of the clone circles, or used to replace one of them.
Alternatively, select the circles then [Edit > Clone > Unlink Clone] or [shift+alt+d]. This converts clones into regular shapes and now you can change the stroke as usual.
I'm running Inkscape 1.4 on Mac OS 12.7.6, Apple silicon, installed from dmg file. I generated the attached program in Python, using matplotlib.pyplot and saving the figure as svg. I'm trying to change the color of the large blue circles to red. Three of them (on the right) show what I've managed to achieve. I can change the fill with no problem, and when I try to change stroke color, the status bar at the bottom shows both fill and stroke are red, but the stroke is still blue (see screen show). I can confirm that this is the stroke by changing the stroke style--it's the blue circle that changes. How do I get stroke color to change?
The problem is that the circles are clones. If the original circle can be found then changing its fill and stroke will change all the clones colour as well.
Normally this would be done as hinted in the status bar by SHIFT-D on a clone object to find the original.
However there is a problem with this svg, SHIFT-D reports that the original is not on the canvas but defined in a <defs> statement.
I had to go to the Edit > XML Editor (see image)
and drag the <path id="m0ebe547e67"> path out of the <defs and into the <g id="line2d_28" group.
You will see a new circle appears on the canvas, this is the original circle, and fill/stroke changes of this circle will be reflected in all clones.
But now you have an extra unwanted circle, it can be hidden underneath one of the clone circles, or used to replace one of them.
Edited svg attached.
Β
Alternatively, select the circles then [Edit > Clone > Unlink Clone] or [shift+alt+d]. This converts clones into regular shapes and now you can change the stroke as usual.
The latter does exactly what I need, since I need to change some of the circles, but not the others. Thank you very much!