Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong plotting labels #623

Closed
x66ccff opened this issue Dec 23, 2022 · 4 comments
Closed

Wrong plotting labels #623

x66ccff opened this issue Dec 23, 2022 · 4 comments
Labels

Comments

@x66ccff
Copy link

x66ccff commented Dec 23, 2022

Describe the bug
When I try to draw multiple igraphs, it often happens that the first one has the right label, but the second one has the wrong label

Here is part of my code.

# Before this, another graph g0 was drawn in the same way, and problems occurred when drawing g1
g = g1
ig.plot(g, 
        bbox=(0,0,400,200),
        vertex_label=['"'+dict_id_to_symbol[_id] +'":'+ str(i) for i, _id in enumerate(g.vs['type'])],
        vertex_color='lightblue')

image

However, the input list of vertex_label is correct.

['"'+dict_id_to_symbol[_id] +'":'+ str(i) for i, _id in enumerate(g.vs['type'])]

List contents.:

['"START":0',
 '"x":1',
 '"x":2',
 '"3":3',
 '"exp":4',
 '"sin":5',
 '"/":6',
 '"*":7',
 '"END":8']

Version information
0.10.2

@iosonofabio
Copy link
Member

Thanks for writing. Can you please include the code needed to plot g0?

Even more useful if you could actually describe a full example instead of a code snippet. If we can reproduce on our machine it's a lot easier to help you, and we can only do that with the code needed to generate the graph.

@x66ccff
Copy link
Author

x66ccff commented Dec 23, 2022

for_reproduce_error.zip

This is the file used to reproduce the error and contains the required pickle file and jupyter notebook file, the pickle file format is 4.0

@stale
Copy link

stale bot commented Mar 25, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 25, 2023
@ntamas
Copy link
Member

ntamas commented Mar 25, 2023

Most likely a duplicate of #638 (or, more precisely, #638 is a duplicate of this). I'll keep #638 open and close this as the other issue is more detailed.

@ntamas ntamas closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants