-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a PennyLane style for circuits and matplotlib plots (#3950)
* Initial look * Adding style for mpl circuit plots * Added Quicksand to mpl style * reformatting * changed test_style.py * facecolor = white; added test * fixing idiotic mistake ♥ * def almost black * setup file add * setup fixes + changelog * adjusted wording * forgot to format 🤦♂️ * trying to circumvent black * black fail lied * added pennylane to use_style * Style sheet location + setup * adjusted changelog to new style folder * Apply suggestions from code review Co-authored-by: Matthew Silverman <matthews@xanadu.ai> * add circuit font logic * added to qml_drawer.rst list * added style example * pls * pennylane in docs * pragma for if in style * format * Apply suggestions from code review Co-authored-by: Matthew Silverman <matthews@xanadu.ai> * final clarifications * re quicksand bold --------- Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
- Loading branch information
Showing
15 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# PennyLane plot palette | ||
axes.prop_cycle: cycler('color', ['70CEFF', 'FF87EB', 'FFE096', 'D7A2F6', 'FDC9DE', 'E1EBA8', 'C6FDD9', 'B5F2ED']) | ||
|
||
patch.linewidth: 0.5 | ||
patch.facecolor: white | ||
patch.edgecolor: BCBABA | ||
patch.antialiased: True | ||
|
||
axes.facecolor: white | ||
axes.edgecolor: BCBABA | ||
axes.linewidth: 1 | ||
axes.grid: True | ||
axes.titlesize: x-large | ||
axes.labelcolor: BCBABA | ||
|
||
xtick.color: black | ||
xtick.direction: out | ||
ytick.color: black | ||
ytick.direction: out | ||
|
||
grid.color: F0EEEF | ||
grid.linestyle: : | ||
|
||
font.sans-serif: Quicksand, DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif | ||
font.weight: bold |
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
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
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