period = [20,10]
periods_a = []
periods_b = []
difference_count_list = np.zeros((1000,period[0]*period[1]))
aperiodic_i = []
for i in range(10):
#print(format(i,"b")[1:]+" "+str(calc_period_entire( np.array([int(a) for a in format(i,"b")[1:]]) )))
if calc_period_entire( np.array([int(a) for a in format(i,"b")[1:]]) ) == -1:
sum_free,difference_count_list[i,:] = generate_sum_free(0,i,period[0]*period[1])
print(format(i,"b")[1:]+" "+str(calc_period(sum_free)))
periods_a.append([i,calc_period(sum_free)])
if periods_a[len(periods_a)-1][1] == -1:
aperiodic_i.append(i)
periods_b.append([i,calc_period_entire(sum_free)])
A = scatter_plot(periods_a, strokecolor='red', facecolor='red')
B = scatter_plot(periods_b, strokecolor='blue', facecolor='blue')
show(A)
|
1
1
0 1
1 2
01 3
10 3
001 4
verbose 0 (163: primitive.py, options) WARNING: Ignoring option
'strokecolor'=red
verbose 0 (163: primitive.py, options)
The allowed options for Scatter plot graphics primitive on 7 data points
are:
alpha How transparent the marker border is.
clip Whether or not to clip.
edgecolor The color of the marker border.
facecolor The color of the marker face.
hue The color given as a hue.
marker What shape to plot the points. See the documentation
of plot() for the full list of markers.
markersize the size of the markers.
rgbcolor The color as an RGB tuple.
zorder The layer level in which to draw.
verbose 0 (163: primitive.py, options) WARNING: Ignoring option
'strokecolor'=red
verbose 0 (163: primitive.py, options)
The allowed options for Scatter plot graphics primitive on 7 data points
are:
alpha How transparent the marker border is.
clip Whether or not to clip.
edgecolor The color of the marker border.
facecolor The color of the marker face.
hue The color given as a hue.
marker What shape to plot the points. See the documentation
of plot() for the full list of markers.
markersize the size of the markers.
rgbcolor The color as an RGB tuple.
zorder The layer level in which to draw.
verbose 0 (163: primitive.py, options) WARNING: Ignoring option
'strokecolor'=red
verbose 0 (163: primitive.py, options)
The allowed options for Scatter plot graphics primitive on 7 data points
are:
alpha How transparent the marker border is.
clip Whether or not to clip.
edgecolor The color of the marker border.
facecolor The color of the marker face.
hue The color given as a hue.
marker What shape to plot the points. See the documentation
of plot() for the full list of markers.
markersize the size of the markers.
rgbcolor The color as an RGB tuple.
zorder The layer level in which to draw.
1
1
0 1
1 2
01 3
10 3
001 4
verbose 0 (163: primitive.py, options) WARNING: Ignoring option 'strokecolor'=red
verbose 0 (163: primitive.py, options)
The allowed options for Scatter plot graphics primitive on 7 data points are:
alpha How transparent the marker border is.
clip Whether or not to clip.
edgecolor The color of the marker border.
facecolor The color of the marker face.
hue The color given as a hue.
marker What shape to plot the points. See the documentation of plot() for the full list of markers.
markersize the size of the markers.
rgbcolor The color as an RGB tuple.
zorder The layer level in which to draw.
verbose 0 (163: primitive.py, options) WARNING: Ignoring option 'strokecolor'=red
verbose 0 (163: primitive.py, options)
The allowed options for Scatter plot graphics primitive on 7 data points are:
alpha How transparent the marker border is.
clip Whether or not to clip.
edgecolor The color of the marker border.
facecolor The color of the marker face.
hue The color given as a hue.
marker What shape to plot the points. See the documentation of plot() for the full list of markers.
markersize the size of the markers.
rgbcolor The color as an RGB tuple.
zorder The layer level in which to draw.
verbose 0 (163: primitive.py, options) WARNING: Ignoring option 'strokecolor'=red
verbose 0 (163: primitive.py, options)
The allowed options for Scatter plot graphics primitive on 7 data points are:
alpha How transparent the marker border is.
clip Whether or not to clip.
edgecolor The color of the marker border.
facecolor The color of the marker face.
hue The color given as a hue.
marker What shape to plot the points. See the documentation of plot() for the full list of markers.
markersize the size of the markers.
rgbcolor The color as an RGB tuple.
zorder The layer level in which to draw.
|