Skip to content

Commit 4da2286

Browse files
committed
clean up plot fix
1 parent 529d4d8 commit 4da2286

File tree

3 files changed

+642
-646
lines changed

3 files changed

+642
-646
lines changed

content/blog/2020-08-28-api.Rmd

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,10 @@ According to the `r blogdown::shortcode_html("apireflink", "api/covidcast-signal
400400
this is the `fb-survey` data source's `smoothed_hh_cmnty_cli` signal.
401401
(Click the "Code" button to see the Python code used to produce this example.)
402402

403-
```{python, include=FALSE}
404-
import matplotlib.pyplot as plt # workaround for render problem due to weird interaction among reticulate, covidcast and matplotlib
405-
```
406-
407403
```{python python-data, dev='svg'}
404+
import matplotlib.pyplot as plt
408405
import covidcast
409406
from datetime import date
410-
import matplotlib.pyplot as plt
411407
import os
412408
413409
covidcast.use_api_key(os.environ['API_KEY']) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html

content/blog/2020-08-28-api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ <h2>Accessing the API</h2>
379379
According to the {{< apireflink "api/covidcast-signals/fb-survey.html" "relevant documentation page" >}},
380380
this is the <code>fb-survey</code> data source’s <code>smoothed_hh_cmnty_cli</code> signal.
381381
(Click the “Code” button to see the Python code used to produce this example.)</p>
382-
<pre class="python"><code>import covidcast
382+
<pre class="python"><code>import matplotlib.pyplot as plt
383+
import covidcast
383384
from datetime import date
384-
import matplotlib.pyplot as plt
385385
import os
386386

387387
covidcast.use_api_key(os.environ[&#39;API_KEY&#39;]) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html

0 commit comments

Comments
 (0)