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

[python/matplotlib/pyplot] Add suport for ec and fc in arrow #1648

Open
wants to merge 9,439 commits into
base: master
Choose a base branch
from

Conversation

RedGl0w
Copy link
Contributor

@RedGl0w RedGl0w commented Aug 18, 2020

This fixes #1647, like the behaviour of graph 90+E (this doesn't reproduce the behaviour of real pyplot).

This was not necessary when it was only used for the expressions
variable box, because the background was already of the right color
thanks to the previous displayed menu. We need to draw it for the python
variable box.
- It sould be nameOfScript.py, not just nameOfScript, when the source is
a script
- Fix the source for script name variables. For instance, "from
script1 import *" should display the node "script1" with the source "script1.py"
- If a script has the same name as a module, the module will be imported
and not the script, so do not load its variables (even if the module is
not in the toolbox).
After lauching the console, if we fetch a script we mark it as fetched.
When the variable box displays variables from imported scripts, it scans
all the variables from the scripts marked as fetched.
Because we can now, it might need to be de-factorized later, if more
classes inherit from alternate_empty_nested_menu_controller
LeaNumworks and others added 22 commits July 16, 2020 11:46
And assert_expression_simplify -> assert_expression_reduce
Take care of an undefined index that arrived during the remove unit
UnitConvert::removeUnit replaces the unit ocnvert with an undefined.
calculation height memoization. They're computed from the layouts which
don't depend on the complex format (or any other settings parameters
which could have changed).
…ells are

computed when the calculation is added to the store and don't change afterwards.
Otherwise, if their heights change when scrolling (due to a modification of the
display output type - ExactOnly, ApproximateOnly...), it generates crashes.
If the commandLength is > than the buffer size, we have to escape at
some point to avoid overflowing the buffer.
Change-Id: I610726ed5966d353397be923b76dd003297940a7
Change-Id: I6ebec412b4b6612710476274a8665375d21f9ef8
Without this change, we would get weird "reduced" expression, such as
multiplication(undef, _s), but we do not always check
sSimplificationHasBeenInterrupted afterwards.
If an expression hasUnits and is then reduced, it might not have units
anymore for instance if it was replaced with undefined).
Scenario: Enter "[5000000000000000]^20 _s" in the calculation app
Change-Id: I99a523e9e88ea9c3064e4367d96b01edb0020df9
Change-Id: I7a5e12f6f3d79da802149a6aeef88387941ccdd8
@NumWorksBot
Copy link

.text .rodata .bss .data
Base 647 468 bytes 264 391 bytes 175 200 bytes 1 72 bytes
Head 647 628 bytes 264 407 bytes 175 200 bytes 1 72 bytes
+ 160 bytes + 16 bytes + 0 bytes + 0 bytes
+ 0 % + 0 % + 0 % + 0 %

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

Successfully merging this pull request may close these issues.

[python/matplotlib/pyplot] support 2 colors for arrow
10 participants