Skip to content

Commit b6b8c96

Browse files
author
Enric Sala
committed
Minor improvements to the examples in the README
1 parent bdb945f commit b6b8c96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ influxdb = InfluxDB(URL, USER, PASS, DATABASE);
3838
% Check the status of the InfluxDB instance
3939
[ok, ping] = influxdb.ping()
4040
41-
% Show the databases in the server
41+
% Show the databases
4242
dbs = influxdb.databases()
4343
4444
% Change the current database
@@ -161,11 +161,12 @@ weather = result.series('weather')
161161
162162
% When grouping by tags, get series with matching tags
163163
weather_bcn = result.series('weather', 'city', 'barcelona')
164+
weather_cph = result.series('weather', 'city', 'copenhagen')
164165
165166
% Check which fields are present in a series
166167
field_names = weather.fields()
167168
168-
% Extract and plot a field
169+
% Plot a field
169170
time = weather.time('Europe/Amsterdam');
170171
temperature = weather.field('temperature');
171172
plot(time, temperature);

0 commit comments

Comments
 (0)