hanspi42 / signalflowgrapher

This Python tool allows you to draw signal-flow graphs, calculate transfer functions (SymPy code is generated for further use in Jupyter notebooks), do graph manipulations (e.g., node elimination and graph transposition), and save a graph as TikZ for use in LaTeX documentation.
Artistic License 2.0
30 stars 6 forks source link

Inconsistent grid points when changing screens #49

Open 2nOrderEDO opened 2 months ago

2nOrderEDO commented 2 months ago

Hi @hanspi42,

I wanted to thank you for creating this very useful software.

I've encountered an issue that I'd like to report. When I open a saved graph on a different PC with a different monitor and resolution, the snap grid is displaced, causing all nodes to shift out of alignment with the grid. This is a minor inconvenience, as I need to manually adjust each node to snap back into place with the new grid position every time I change computers.

Steps to reproduce:

  1. Save a graph on one PC with a specific monitor and resolution.
  2. Open the saved graph on a different PC with a different monitor and resolution.
  3. Observe the grid displacement and node shifting.

Expected behavior: The grid and nodes should maintain their original positions and alignment, regardless of the PC or monitor used to open the graph.

Thanks for your attention to this issue!

Regards, 2nOrderEDO

hanspi42 commented 2 months ago

Thanks! This is related to #5, and it unfortunately will force me to rewrite the whole graphics part.