Skip to content

A Few Minor Issues in the Tutorial #372

Open
@kayween

Description

There are a few minor issues in the tutorial that is likely caused by interface changes in the last two years.

In the first cell, ax.grid(b=None) triggers an error from matplotlib.

ax.axis('off')
ax.grid(b=None)
ax.imshow(M.T, cmap=cm.Greys_r)

The error message is shown below.

ValueError: keyword grid_b is not recognized; valid keywords are ['size', 'width', 'color', 'tickdir', 'pad', 'labelsize', 'labelcolor', 'labelfontfamily', 'zorder', 'gridOn', 'tick1On', 'tick2On', 'label1On', 'label2On', 'length', 'direction', 'left', 'bottom', 'right', 'top', 'labelleft', 'labelbottom', 'labelright', 'labeltop', 'labelrotation', 'grid_agg_filter', 'grid_alpha', 'grid_animated', 'grid_antialiased', 'grid_clip_box', 'grid_clip_on', 'grid_clip_path', 'grid_color', 'grid_dash_capstyle', 'grid_dash_joinstyle', 'grid_dashes', 'grid_data', 'grid_drawstyle', 'grid_figure', 'grid_fillstyle', 'grid_gapcolor', 'grid_gid', 'grid_in_layout', 'grid_label', 'grid_linestyle', 'grid_linewidth', 'grid_marker', 'grid_markeredgecolor', 'grid_markeredgewidth', 'grid_markerfacecolor', 'grid_markerfacecoloralt', 'grid_markersize', 'grid_markevery', 'grid_mouseover', 'grid_path_effects', 'grid_picker', 'grid_pickradius', 'grid_rasterized', 'grid_sketch_params', 'grid_snap', 'grid_solid_capstyle', 'grid_solid_joinstyle', 'grid_transform', 'grid_url', 'grid_visible', 'grid_xdata', 'grid_ydata', 'grid_zorder', 'grid_aa', 'grid_c', 'grid_ds', 'grid_ls', 'grid_lw', 'grid_mec', 'grid_mew', 'grid_mfc', 'grid_mfcalt', 'grid_ms']

This error is likely due to the matplotlib upgrade.

In the fifth cell, the bash command also triggers an error.

%%bash --bg

aepsych_server --ip 0.0.0.0 --port 5555 database --db data_collection_analysis_tutorial.db

The following is the error message. This error can be fixed by simply removing "database" in the above command.

usage: aepsych_server [-h] [--port N] [--ip M] [-s STRATCONFIG] [--logs LOGS] [-d DB] [-r REPLAY] [-m]
aepsych_server: error: unrecognized arguments: database

Versions:

  • AEPsych 0.4.1
  • matplotlib 3.9.2

I can open a pull request to fix these if needed.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions