-
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
Different color maps between :gradient and other settings #10
Comments
Any hint would be much apprecciated |
I updated the figures so to clarify the impact of the issue: nodes 3,7,8,9,15,17,19 and 20 completely changed their colors; moreover, the weird shaping occurs. |
The smallest example reproducing the error is shown below: notice the change in the color of "Node 12".
I tried to debug it at RecibeBase; in particular, I showed the variable "series_list" at line 286 of ReceipeBase, to highlight whether the block Node12 were plotted with the right color in a and b. In the word files, I show the two plots and the differences highlighted. The output of ReceipeBase seems to be consistent; I add an issue also on Plots. |
I tested plotly and pyplot backends and the error does not occur, thus it is likely a Plots.jl problem; I added the issue in Plots accordingly: JuliaPlots/Plots.jl#3446 |
Dear developer,
While using the code, I experienced problems with the :gradient settings.
In particular, the node colors changed when using the option :gradient, with respect to the others.
With the :gradient, the outcome is the following:
With no :gradient setting (thus the standard setting), the output is the following:
For reproducibility, this is the source with the :gradient [to run this code, you need the change in the pull request]
The code used without the :gradient is the following.
Options :src and :dst work as expected, instead. I am also investigating the issue, but the bug is very challenging to find, my guess is that the bug may be in the calculations of the "rectangles" used to draw the gradient, in the Recipe, or in some default Plot settings (unlikely maybe). However, for the first case, it is difficult for me to read the source unfortunately.
The text was updated successfully, but these errors were encountered: