-
Notifications
You must be signed in to change notification settings - Fork 460
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
Added a color menu in graph and list #1741
Open
RedGl0w
wants to merge
9,526
commits into
numworks:master
Choose a base branch
from
RedGl0w:color
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matplotlib shape)
Added a condition for being considered empty. Allows axis("on") or axis((0,1,2,3)) to display something with show() This behavior is the same as the python module Change-Id: If5f3b07c280ee9ead2bc23d23cbbb4f01da7eae5
Change-Id: Idea0ce07cbc800139539f9d3fb27811920645184
Allows user to print strings with the turtle Change-Id: I06a3832f6fa36d29506be10c48a1b2fb34cb69fb
Change-Id: I3ff3d4fb3552bcb8c375c77651db3b7c44991646
Change-Id: I29476d8148ad98285505adc460b90628573518fa
Scenario: write a ascrip "from matplotlib.pyplot0 import *" than open the variable box
Scenario: add the script from matplotlib.pyplot import *\nfrom math import *\n\ng=9.81\n\ndef x(t,v_0,alpha):\n return v_0*cos(alpha)*t\ndef y(t,v_0,alpha,h_0):\n return -0.5*g*t**2+v_0*sin(alpha)*t+h_0\n\ndef vx(v_0,alpha):\n return v_0*cos(alpha)\ndef vy(t,v_0,alpha):\n return -g*t+v_0*sin(alpha)\n\ndef t_max(v_0,alpha,h_0):\n return (v_0*sin(alpha)+sqrt((v_0**2)*(sin(alpha)**2)+2*g*h_0))/g\n\ndef simulation(v_0=15,alpha=pi/4,h_0=2):\n tMax=t_max(v_0,alpha,h_0)\n accuracy=1/10**(floor(log10(tMax))-1)\n T_MAX=floor(tMax*accuracy)+1\n X=[x(t/accuracy,v_0,alpha) for t in range(T_MAX)]\n Y=[y(t/accuracy,v_0,alpha,h_0) for t in range(T_MAX)]\n VX=[vx(v_0,alpha) for t in range(T_MAX)]\n VY=[vy(t/accuracy,v_0,alpha) for t in range(T_MAX)]\n for i in range(T_MAX):\n arrow(X[i],Y[i],VX[i]/accuracy,VY[i]/accuracy)\n grid()\n show()tan(if :\n \n celse:\n )c then autocomplete after the last c.
expression contains a unit but we can't extract it (2^_min for instance)
No scenario, but it seems right to reset m_shortenResultCharCount
Example script: from turtle import * hideturtle() We had "hideturtle" in the local variables, and "hideturtle()" in the imported. Now we should only have the latter.
To prevent crashes caused by failed casts from char to float, removed optimization. Change-Id: Ia91aafa007538b6c05f7aace5e5962989d313c98
checkFloatType function used to check for an obj type before cast. This is already done by mp_obj_get_float Change-Id: I745bb3066328678ab0b2a2149c8f38a84f26fbd2
denominator() at reduction - there is no reason that there is no unit at this stage...)
reduced expression
containing matrix of complex form (for instance ConfidenceInterval). This fixes the following bug: input (2_m*confidence(0.2,12))^(-1) --> crashes
the autocompleted one
numworks/setup-msys2
Change-Id: I0f27277ea704f81e316c7ff78fb7bed8c70ff4ae
Change-Id: Icfd19cbad5472f6bf81a2a1accb88e79ab7a115b
This reverts commit 110f333.
This reverts commit 28dddb4.
RedGl0w
commented
Dec 31, 2020
|
||
constexpr const I18n::Message MessageTableCellWithColor::k_textForIndex[Palette::numberOfDataColors()]; | ||
|
||
constexpr const uint8_t colorMask[MessageTableCellWithColor::ColorView::k_colorSize][MessageTableCellWithColor::ColorView::k_colorSize] = { // FIXME Can't link with constexpr static |
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.
Remove the // FIXME
J'aimerais bien que mes élèves puissent choisir les couleurs de leurs fonctions ! |
e385767
to
974bf08
Compare
This was referenced Feb 8, 2022
bb3baa7
to
e4c3a98
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rebase of #1385 on master, and with a todo list which will be certainly done :
color
suffixScreenshot :
![image](https://user-images.githubusercontent.com/43498612/103373989-ac5a7c00-4ad6-11eb-8f75-6c54c69c9fa5.png)
![image](https://user-images.githubusercontent.com/43498612/103374000-b7151100-4ad6-11eb-8fe9-9cb4cf8ee19c.png)