Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Examen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LE GRAND Maxime
Examen
Commits
ae758755
Commit
ae758755
authored
5 months ago
by
Maxime Le Grand
Browse files
Options
Downloads
Patches
Plain Diff
rapide rajouts
parent
7c04c49a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+3
-3
3 additions, 3 deletions
main.py
with
3 additions
and
3 deletions
main.py
+
3
−
3
View file @
ae758755
...
@@ -37,15 +37,15 @@ class TabletteChocolat:
...
@@ -37,15 +37,15 @@ class TabletteChocolat:
def
coupe
(
self
,
i
,
j
):
def
coupe
(
self
,
i
,
j
):
#changer dimension de la tablette
#changer dimension de la tablette
#refaire appel a coups possible avec nv dimension
#refaire appel a
la méthode
coups possible avec nv dimension
return
return
def
plot
(
self
):
# objectif: pour le carre 3,2, il faut
def
plot
(
self
):
# objectif: pour le carre 3,2, il faut
plt
.
gca
().
set_aspect
(
'
equal
'
)
#dessiner le carre correspondant entre
plt
.
gca
().
set_aspect
(
'
equal
'
)
#dessiner le carre correspondant entre
plt
.
axis
(
'
off
'
)
#(i+0.1,j+0.1) et (i+0.9,j+0.9)
plt
.
axis
(
'
off
'
)
#(i+0.1,j+0.1) et (i+0.9,j+0.9)
plt
.
fill
-
with
-
color
(
D5B799
)
plt
.
fill
-
with
-
color
(
D5B799
)
#mauvaise synthax
plt
.
plot
()
#rectangle de base de la tablette entre (0.0) et (m,n))
plt
.
plot
()
#rectangle de base de la tablette entre (0.0) et (m,n))
plt
.
plot
()
plt
.
plot
()
#generation des carres
plt
.
show
()
plt
.
show
()
plt
.
close
plt
.
close
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment