1
Good evening I have a message that I turned into binary and wanted to make a graph from the following patterns ami pseudoternary, where if the binary digit 1 the frequency is 0 and if the binary digit is 0 it is alternating the frequency between positive(1) and negative(-1):
I’m using the Tkinter and matplotlib libraries but I’m open to other options. My attempt was to go through each digit of the binary string and compare whether it is 1 or 0, but I’m having difficulty even passing it to the graph.
for i in binario.get():
if i==1:
#fazer algo no gráfico
if i==0:
#fazer algo no gráfico começando positivo e variar
he specified yes in the question that the pattern is Inverted bipolar AMI. I’ve plotted your function if you want to add the answer https://imgur.com/a/xwaFGVH
– Augusto Vasques
@Augustovasques That’s how I do?
– Erick Nunes
@Ericknunes take this code of Pedro Costa and glue in the notebook jupyter that he plots the function.
– Augusto Vasques