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
Add coloured edge #66
Comments
This is related to #87 |
This is fixed by #106. Using this example: from matplotlib import rc import daft # Colors. pgm = daft.PGM([3.6, 3.5], origin=[0.7, 0]) n = daft.Node("phi", r"$\phi$", 1, 3, plot_params=s_color) pgm.add_node(daft.Node("spec", r"$s$", 4, 3, plot_params=p_color)) pgm.add_node(daft.Node("pixels", r"$y_i ^j$", 2.5, 1, observed=True)) # Edges. pgm.add_edge("spec", "planet_img", plot_params=p_color) # And a plate. # Render and save. |
I'm closing this; reopen if you still have issues |
Hi,
I really like daft & have begun to play around with it. I'm just trying to do something really simple explaining the inputs needed to model an NFW halo.
I've got a (probably really simple) question, I'd like to colour some of my lines but I'm not quite sure to how to do this with pgm.add_edge?
daft.Edge doesn't seem to nest like pgm.add_node(daft.Node())?
i.e. I get errors if I try pgn.add_edge(daft.Edge())
The text was updated successfully, but these errors were encountered: