Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating Hue Plots in Pari-GP
#4
(05/12/2021, 04:31 AM)JmsNxn Wrote: I've e-mailed sheldonison, but I'm getting the feeling he's super busy. I've scoured throughout the internet looking for help on this. I asked a question on stackoverflow. And now I'm asking this question here.

How do you plot complex valued functions in Pari-GP? Particularly; I mean, how do you create hue plots using Pari-GP? Is there something stupid I'm missing here?

I've got my Pari-gp code as good as I can get it at this point (there are still some jumps which occur because Pari is always choosing the principal branch; but in limited cases everything is working).

Do I make an array of values and use the colour plot function somehow? I'm fairly confused. I'm just wondering how Sheldon produces his graphs in Pari; and I feel I'm missing something stupid..?

Any help is greatly appreciated...

All of this is reminding me of why I dropped my major from computer science years ago. I god damn hate coding (unless it's theory, of course).

Regards, James

I calculated the value of the function by Pari-GP and then imported the value into Mathematica to export the image.
As I mentioned before, I wouldn't have switched to Pari-GP if MMA didn't have very poor support for large number functions.
This also has the good thing that if I want to make a super high resolution image, I can do it in parallel and support breakpoints. (By fully manual parallel scheduling, of course)

The color scheme I use is Hue[(Abs@rawdata+Pi)/(2 Pi), 1/(1+0.3 Arg@rawdata), 1 - 1/(1.1+5 Arg@rawdata)]. This makes the color scheme of the images I draw look "opposite".

https://upload.wikimedia.org/wikipedia/c...e_to_1.gif
https://upload.wikimedia.org/wikipedia/c...number.gif
https://upload.wikimedia.org/wikipedia/c...10%5E6.gif
https://upload.wikimedia.org/wikipedia/c...29%3De.gif

ps:I am so sorry. is Hue[(Arg@rawdata+Pi)/(2 Pi), 1/(1+0.3 Log@Abs@rawdata), 1 - 1/(1.1+5 Log@Abs@rawdata)].
Reply


Messages In This Thread
Creating Hue Plots in Pari-GP - by JmsNxn - 05/12/2021, 04:31 AM
RE: Creating Hue Plots in Pari-GP - by Gottfried - 05/12/2021, 01:11 PM
RE: Creating Hue Plots in Pari-GP - by JmsNxn - 05/13/2021, 01:48 AM
RE: Creating Hue Plots in Pari-GP - by Ember Edison - 09/24/2021, 06:27 PM
RE: Creating Hue Plots in Pari-GP - by JmsNxn - 09/25/2021, 01:20 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Brjuno number in Pari-GP Ember Edison 1 390 10/24/2021, 03:32 AM
Last Post: Ember Edison
  PARI/gp Xorter 14 28,599 07/09/2018, 08:54 AM
Last Post: Xorter
  Pari-TTY - update Gottfried 0 3,987 10/13/2007, 04:02 PM
Last Post: Gottfried



Users browsing this thread: 1 Guest(s)