-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updated PlasmoPlots to work with v0.6.0+ #6
Conversation
I did not see that there was already another PR open (#5) for this same thing. I am going to close this one and instead look at that other one. I see the tests here work, but the tests on #5 are failing, so I will take a look and see if I can figure out why that is. Apologies for duplicating the PR. |
@dlcole3 I forgot I had opened the other PR. If your implementation works, we can close the other one in favor of this. |
Sounds good. I copied over the examples and tests from your PR (#5) and followed a couple of the formatting things from your source code. On my local machine, the tests all run, but the overlapping |
src/matrix_plot.jl
Outdated
|
||
n_all_cons_total = n_cons_total + n_linkcons_total #n_link_edges_total | ||
n_all_cons_total = n_cons_total + n_linkcons_total |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jalving I noticed one difference between #5 and #6 is that #5 uses n_cons_total
for n_all_cons_total
. This makes sense to me, but when I removed the n_linkcons_total
from this line, the resulting spy matrix has node labels that run off the plot, and I don't think the number of constraints on the y axis is being mapped correctly. Consequently, I put the n_linkcons_total
back into this equation and the plots look better. I can try to dive into the code mroe to figure out why this is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect the issue has to do with inconsistencies with how constraints used to be tracked versus how they are now. There are likely a few kinks to work through here.
overlapping used to work. i suspect issues have to do with erroneous tracking due to the v0.6 updates. |
It looks like it was not strictly an issue with the overlapping case. The |
For the overlapping case, it does look like both the old and new (i.e., this PR) versions of PlasmoPlots do not directly overlap the matrix_plot. For instance, the plot from example 3 looks like this which says it has 33 variables listed on the x axis. The graph technically only has 19 variables on it (the additional 14 come from the overlap). Is that the expected behavior from plotting? It seems like there is an alternative visualization where the x-axis only has 19 variables on it. However, the current approach seems okay because it highlights the variables that are "overlapping" |
Yes, IIRC, I never produced a visual that directly overlaps the matrix plot. I think this version was meant to show the 'size' of the overlapped problems, but a direct representation would also be nice to have. See issue #7 |
I think Plasmo needs to change the default such that |
PlasmoPlots had not been updated to work with the new release of Plasmo (v0.6). I updated the source code to handle the new version, including upding some of the function calls (e.g.,
num_all_variables
is replaced bynum_variables
or replacedgetnodes
withlocal_nodes
). I also updated the label calls (which need to accesslabel.x
instead oflabel
sincelabel.x
results inBaseRefValue{Symbol}
being included in the label) and the call to the clique projection. The tests and Project.toml files have been updated.I did not update the PlasmoPlots.jl version number in the Project.toml file, which I think should be updated to 0.2.0. @jalving do you normally do that as a separate PR, or should I have included that in this PR?