Skip to content

Commit

Permalink
Remove deprecated argument of pyplot.stem (#6086)
Browse files Browse the repository at this point in the history
`use_line_collection` is deprecated and defaults to `True` anyway.
Prevent deprecation messages from showing up at
https://quantumai.google/cirq/experiments/fourier_checking
  • Loading branch information
pavoljuhas authored May 8, 2023
1 parent dc23f87 commit df3acbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/experiments/fourier_checking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@
"print(f\"gs: {list(gs)}\")\n",
"print(f'Correlation: {correlation} Forrelation: {forrelation}')\n",
"plt.figure(figsize=(15, 5))\n",
"plt.stem(fs, use_line_collection=True)\n",
"plt.stem(gs, linefmt='--r', markerfmt='ro', use_line_collection=True)\n",
"plt.stem(fs)\n",
"plt.stem(gs, linefmt='--r', markerfmt='ro')\n",
"plt.title(f\"Two distributions from F set\")\n",
"\n",
"print('')\n",
Expand All @@ -627,8 +627,8 @@
"print(f'Correlation: {correlation} Forrelation: {forrelation}')\n",
"\n",
"plt.figure(figsize=(15, 5))\n",
"plt.stem(fs, use_line_collection=True)\n",
"plt.stem(gs, linefmt='--r', markerfmt='ro', use_line_collection=True)\n",
"plt.stem(fs)\n",
"plt.stem(gs, linefmt='--r', markerfmt='ro')\n",
"_ = plt.title(f\"Two distributions from U set\")\n"
]
},
Expand Down

0 comments on commit df3acbe

Please sign in to comment.