I want to create two plots, one that has gaussian primes depicted in complex plane and another one that shows the number of (gaussian) prime factors of that complex number. I can calculate both the primality (the first scenario) and the factors (the second one), but can't find the correct format for the visualization.
In the first case I want to merely draw a tick for every prime in a complex plane of given dimensions, like pictured in this Wolfram Mathworld page. I have already defined a function with the following signature: is_gaussian_prime(c : complex) -> bool
. What I'm missing is a suitable data structure for storing the information of the primacy of all the complex numbers from real_min
to real_max
and imag_min
to imag_max
and a way to visualize that data structure. I have looked into seaborn.relplot()
as documented here, but cannot quite grasp, what kind of shape I want the data to be in.
The reason I want to use relplot()
is because that allows drawing different sizes of ticks for different amount of prime factors in the second scenario. Meaning that I want to draw the second plot in such a way that the size of the tickers represent the number of prime factors of that particular gaussian number. To be more precise, in the second plot I want to draw gaussian primes with a distinct color and gaussian composites as black with bigger ticker size for composites that have more factors. For this case I have a function of the following signature already defined: number_of_gaussian_factors(c : complex) -> int
.