Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit fb02a5f6 authored by Pierre Cazenave's avatar Pierre Cazenave

Fix the line style when going beyond the number of colours I have specified.

parent 758799e9
......@@ -228,7 +228,7 @@ if __name__ == '__main__':
# Plot a time series of the current temperature and salinity at the sites
# in timeseries.
colours = ['r', 'b', 'k', 'c', 'y']
styles = ['-', '--', '-.']
styles = ['--', '-.']
fig1 = plt.figure(figsize=(15, 10))
for i, c in enumerate(valid_indices):
......@@ -243,10 +243,10 @@ if __name__ == '__main__':
# No need to use the timeseriesNodesClean value for the FVCOM index
# because we've only extracted the indices in timeseriesNodesClean i.e.
# FVCOM has only len(timeseriesNodesClean) positions in it.
if j > len(colours):
if j >= len(colours):
style = styles[j % len(styles)]
style = styles[0]
style = '-'
T1 = ax1.plot_date(FVCOM['times'], FVCOM['temp'][:, i], '.-',
color=colours[j % len(colours)],
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment