Skip to content

Conversation

@taylorkmw
Copy link
Contributor

No description provided.

@taylorkmw
Copy link
Contributor Author

>>> a = Table([[10, 20, 30, 40, 50, 60, 70, 80,],
               [2, 13, 8, 5, 3, 2, 0, 1,],
               [3, 10, 13, 12, 2, 0, 0, 0,]],
              ['Age', 'Male Counts', 'Female Counts'])
>>> print(a)
Age  | Male Counts | Female Counts
10   | 2           | 3
20   | 13          | 10
30   | 8           | 13
40   | 5           | 12
50   | 3           | 2
60   | 2           | 0
70   | 0           | 0
80   | 1           | 0
>>> a.bar('Age')

screen shot 2015-11-28 at 5 45 09 am

>>>a.barh('Age')

screen shot 2015-11-28 at 5 46 51 am

>>>a.plot('Age')

screen shot 2015-11-28 at 5 47 27 am

@taylorkmw
Copy link
Contributor Author

All the methods that use _visualize (plot, scatter, bar, and barh) use both x and y axes labels. Depending on how _visualize will be used in the future, it may be better to redefine _visualize's method signature to accept x_label and y_labels as params instead of simply labels.

@SamLau95
Copy link
Contributor

@taylorkmw Yeah, that's a great idea. Can you do that in another PR? I'm gonna merge this one now, thanks for the fast turnaround :)

SamLau95 added a commit that referenced this pull request Nov 29, 2015
@SamLau95 SamLau95 merged commit 22bcfee into master Nov 29, 2015
@SamLau95 SamLau95 deleted the scatter-label-fix branch November 29, 2015 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants