scatter-plot

Plotting different clusters markers for every class in scatter plot

安稳与你 提交于 2021-02-07 18:30:54
问题 I have a scatter plot where i am plotting 14 clusters, but each 2 clusters belong to the same class, they are all using the same markers. Every 50 rows is a cluster and every 100 rows is two clusters of the same class. What i want to do is change the markers for every 2 clusters or 100 rows. Link for the Data Frame import pandas as pd import numpy as np from matplotlib import pyplot as plt from matplotlib.pyplot import figure y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

how to make a scatter plots using tensorboard - tensorflow

佐手、 提交于 2021-02-07 13:12:53
问题 now, i'm studying tensorflow. but, i can't draw dot graph using tensorboard. if i have sample data for training, like that train_X = numpy.asarray([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779]) train_Y = numpy.asarray([1.7, 2.76, 2.09, 3.19, 1.694, 1.573, 3.366]) i want to show scatter plots using tensorboard. i know "import matplotlib.pyplot as plt" can do that. but i can just use console (putty). so can't use this method. can i see dot graph, like scatter plots using tensorboard. can anyone

how to make a scatter plots using tensorboard - tensorflow

两盒软妹~` 提交于 2021-02-07 13:12:01
问题 now, i'm studying tensorflow. but, i can't draw dot graph using tensorboard. if i have sample data for training, like that train_X = numpy.asarray([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779]) train_Y = numpy.asarray([1.7, 2.76, 2.09, 3.19, 1.694, 1.573, 3.366]) i want to show scatter plots using tensorboard. i know "import matplotlib.pyplot as plt" can do that. but i can just use console (putty). so can't use this method. can i see dot graph, like scatter plots using tensorboard. can anyone

how to make a scatter plots using tensorboard - tensorflow

做~自己de王妃 提交于 2021-02-07 13:10:32
问题 now, i'm studying tensorflow. but, i can't draw dot graph using tensorboard. if i have sample data for training, like that train_X = numpy.asarray([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779]) train_Y = numpy.asarray([1.7, 2.76, 2.09, 3.19, 1.694, 1.573, 3.366]) i want to show scatter plots using tensorboard. i know "import matplotlib.pyplot as plt" can do that. but i can just use console (putty). so can't use this method. can i see dot graph, like scatter plots using tensorboard. can anyone

How to move legend to outside of a seaborn scatterplot?

删除回忆录丶 提交于 2021-02-07 01:35:05
问题 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd sns.set(style="darkgrid") g = sns.scatterplot(x="Area", y="Rent/Sqft", hue="region", style="availability", data=df) When I run this I get the below plot. I want to move the legend outside of plot. I googled and tried the following g.legend(loc='right', bbox_to_anchor=(1.25, 0.5), ncol=1) plt.show() But I don't get any output. Moreover, I can't understand how the object plt is connected to my sns object I am using

How to move legend to outside of a seaborn scatterplot?

佐手、 提交于 2021-02-07 01:30:00
问题 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd sns.set(style="darkgrid") g = sns.scatterplot(x="Area", y="Rent/Sqft", hue="region", style="availability", data=df) When I run this I get the below plot. I want to move the legend outside of plot. I googled and tried the following g.legend(loc='right', bbox_to_anchor=(1.25, 0.5), ncol=1) plt.show() But I don't get any output. Moreover, I can't understand how the object plt is connected to my sns object I am using

How to move legend to outside of a seaborn scatterplot?

泪湿孤枕 提交于 2021-02-07 01:27:03
问题 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd sns.set(style="darkgrid") g = sns.scatterplot(x="Area", y="Rent/Sqft", hue="region", style="availability", data=df) When I run this I get the below plot. I want to move the legend outside of plot. I googled and tried the following g.legend(loc='right', bbox_to_anchor=(1.25, 0.5), ncol=1) plt.show() But I don't get any output. Moreover, I can't understand how the object plt is connected to my sns object I am using

How to move legend to outside of a seaborn scatterplot?

好久不见. 提交于 2021-02-07 01:26:51
问题 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd sns.set(style="darkgrid") g = sns.scatterplot(x="Area", y="Rent/Sqft", hue="region", style="availability", data=df) When I run this I get the below plot. I want to move the legend outside of plot. I googled and tried the following g.legend(loc='right', bbox_to_anchor=(1.25, 0.5), ncol=1) plt.show() But I don't get any output. Moreover, I can't understand how the object plt is connected to my sns object I am using

python matplotlib scatter plot colors error

只谈情不闲聊 提交于 2021-02-05 11:50:29
问题 I am trying to create a scatter plot with x and y grid where every point gets a color by a preassigned value: {x: 1, y: 2, value: n} I have a list of x and y and another list for the values, tried using this: # make range of x(0 - 359) and y(-90 - 90) x, y = np.meshgrid(range(0, 360), range(-90, 90)) colors = [a very long list (64800 values, one for each point)] print(colors) plt.scatter(x, y, c=colors) plt.colorbar() plt.show() Errors: Traceback (most recent call last): File "C:\python3.6.6

python matplotlib scatter plot colors error

孤者浪人 提交于 2021-02-05 11:50:04
问题 I am trying to create a scatter plot with x and y grid where every point gets a color by a preassigned value: {x: 1, y: 2, value: n} I have a list of x and y and another list for the values, tried using this: # make range of x(0 - 359) and y(-90 - 90) x, y = np.meshgrid(range(0, 360), range(-90, 90)) colors = [a very long list (64800 values, one for each point)] print(colors) plt.scatter(x, y, c=colors) plt.colorbar() plt.show() Errors: Traceback (most recent call last): File "C:\python3.6.6