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

Node text and shape formatting in trajectory plots #28

Open
Aorus42 opened this issue Jul 2, 2024 · 1 comment
Open

Node text and shape formatting in trajectory plots #28

Aorus42 opened this issue Jul 2, 2024 · 1 comment

Comments

@Aorus42
Copy link

Aorus42 commented Jul 2, 2024

The plot(trj, verbose = TRUE) option adds some text to the trajectory plot; however, the text can extend outside of the node rectangles or be cut off with ellipses (...) in the case of log_() messages longer than 10 characters. For example:
image

Is there a way to reduce font size, increase node rectangle width, and display the entire log messages? I'm assuming these are DiagrammeR options that could be exposed via the simmer.plot API?

Thanks!

@Enchufa2
Copy link
Member

Enchufa2 commented Jul 2, 2024

Thanks, a short reprex would be:

library(simmer.plot)

t <- trajectory() |> 
  set_attribute(c("this", "that"), function() 1)

plot(t, verbose=TRUE)

which gives

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants