Skip to content

Connections and node labels dont render when svg=True but falling back to PNG rendering #166

@ddi-acassidy

Description

@ddi-acassidy

When I draw a circuit with svg=True, all the connection dots and node numbers dont show up

from lcapy import Circuit, t, oo
a = Circuit("""
Vin 1_P1 0_P1; down
W 1_P1 1; right
W 0_P1 0; right
#A 0; down=0.1, ground
Vref 3 0_Vref Vref; down
W 0_Vref 0; down

R1 1 2 {R1}; right
R2 3 4 R2; right
R3 2 0_R3 R3; down
W 0 0_R3; right

R4 4_R4 6_R4 R4; right
W 4_R4 4; down
E1 5 0 opamp 2 4 100000; right = 1.5, mirror
Rf 5 6 500; right

W 6_R4 6; down

RL 6_P2 0_P2 2000; down
W 0_R3 0_P2; right
W 6 6_P2; right

;draw_nodes=connections
""")
a.draw(svg=False)
Image
a.draw(svg=True)
Image

The output also seems to still be a rasterized png but that might just be a jupyter notebook thing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions