Skip to content

Commit df3acbe

Browse files
authored
Remove deprecated argument of pyplot.stem (#6086)
`use_line_collection` is deprecated and defaults to `True` anyway. Prevent deprecation messages from showing up at https://quantumai.google/cirq/experiments/fourier_checking
1 parent dc23f87 commit df3acbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/experiments/fourier_checking.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@
615615
"print(f\"gs: {list(gs)}\")\n",
616616
"print(f'Correlation: {correlation} Forrelation: {forrelation}')\n",
617617
"plt.figure(figsize=(15, 5))\n",
618-
"plt.stem(fs, use_line_collection=True)\n",
619-
"plt.stem(gs, linefmt='--r', markerfmt='ro', use_line_collection=True)\n",
618+
"plt.stem(fs)\n",
619+
"plt.stem(gs, linefmt='--r', markerfmt='ro')\n",
620620
"plt.title(f\"Two distributions from F set\")\n",
621621
"\n",
622622
"print('')\n",
@@ -627,8 +627,8 @@
627627
"print(f'Correlation: {correlation} Forrelation: {forrelation}')\n",
628628
"\n",
629629
"plt.figure(figsize=(15, 5))\n",
630-
"plt.stem(fs, use_line_collection=True)\n",
631-
"plt.stem(gs, linefmt='--r', markerfmt='ro', use_line_collection=True)\n",
630+
"plt.stem(fs)\n",
631+
"plt.stem(gs, linefmt='--r', markerfmt='ro')\n",
632632
"_ = plt.title(f\"Two distributions from U set\")\n"
633633
]
634634
},

0 commit comments

Comments
 (0)