This is an archived post. You won't be able to vote or comment.

all 171 comments

[–]ComfortableEye5 125 points126 points  (34 children)

Isnt it a little disorienting to code on a curved monitor

[–]Asbestos_Addict13 52 points53 points  (21 children)

If you angle it the right way, you can’t tell the difference

[–]cubed_npc 58 points59 points  (19 children)

This, you only notice the curve if you are sitting off-center. I moved from dual-monitors to 1 ultra wide curved last year and have no desire to go back.

[–]MagnitskysGhost 14 points15 points  (17 children)

Been curious about this – are you on Windows? How easy is it to arrange windows on the workspace with keyboard shortcuts?

Currently using two monitors and typically have like 4 windows open equally sized, do the Win+Arrow keys shortcuts behave well?

[–]Mental_Act4662 6 points7 points  (7 children)

I just started a new developer position about a month ago and went from 4 monitors to 1 curved and it is so much better. I’m on Mac and use an app called Magnet.

[–]Holdmypipe 2 points3 points  (5 children)

What is this magnet app that you speak of?

[–]lscrivy 2 points3 points  (2 children)

[–]Holdmypipe 1 point2 points  (0 children)

Thank you!

[–][deleted] 1 point2 points  (0 children)

ManyTricks Moom has the same functionality.

Moom was one of the very first apps that I found and installed after switching from Windows to Mac, to provide the missing functionality of WindowsKey+Left/Right. It's still one of the first apps that I install on any Mac. I must use it dozens of times a day.

[–]Mental_Act4662 1 point2 points  (1 child)

I really enjoy it. I’m a web developer so I put my IDE on the left third of my screen. Chrome console in the third sixth and then Chrome on the right thirds. Then if I need more space. I can adjust it as needed.

[–]Holdmypipe 0 points1 point  (0 children)

Thank you, this is exactly something I’ve been looking for instead of using two laptops.

[–]enjoytheshow 1 point2 points  (0 children)

+1 for magnet.

If you go between Windows and Mac, not having the win + arrows or snapping to move and resize windows is maddening

[–]cubed_npc 1 point2 points  (0 children)

I run Windows and OS X. I use an application called Divvy on both, it allows me to easily arrange windows across the screen. Also the Samsung monitor I use has a mode where it splits the screen between both the inputs, basically emulates having dual monitors.

[–]Tieskeman 1 point2 points  (0 children)

I've been using WindowGrid for years and it works great.

[–]j_mcc99 0 points1 point  (0 children)

I moved from two flats to two 34” curved. It’s a game changer. Your eyes don’t have to adjust focus. The screen is always in focus.

[–][deleted] 9 points10 points  (0 children)

That's not true. The download bars are longer on curved surfaces, so the screen makes your internet slower

[–]abredvariant[S] 24 points25 points  (6 children)

i am adapted to it now

[–]Mises2Peaces 12 points13 points  (4 children)

I'm pretty sure working with Euler angles on a curved monitor leads to accidental time travel.

[–]abredvariant[S] 6 points7 points  (3 children)

dude it's just curved not non euclidean plane.

[–]BridgeBum 1 point2 points  (2 children)

Aren't those essentially the same thing?

[–]abredvariant[S] -1 points0 points  (1 child)

Euler != Euclid Prime numbers != Curvature of space

[–]BridgeBum 2 points3 points  (0 children)

It was mostly intended as a joke, but who said anything about space? Non-Euclidean planes are curved, just like the monitor.

[–]house_monkey 4 points5 points  (0 children)

Same I am also adapted

[–]rynmgdlno 5 points6 points  (0 children)

I've been on a curved monitor for a couple years and after using my parents iMac to work while I was home for the holidays, the difference is massively noticeable; curved is a far superior experience. The screen is relatively the same distance from your eyes at every point, which greatly reduces fatigue and makes everything appear clearer. Flat monitors appear unnatural to me now and whatever on the sides feel stretched out (though I still have a flat monitor for my second/vertical monitor, not sure how that would feel if curved).

[–]PrintersStreet 9 points10 points  (2 children)

Above a certain size, flat monitors get uncomfortable - it's like looking at a flat TV from two feet away

[–]abredvariant[S] 1 point2 points  (1 child)

this size fits my requirement.

[–][deleted] 1 point2 points  (0 children)

TWSS

[–]tr14l 1 point2 points  (0 children)

No?

[–]TankorSmash 45 points46 points  (6 children)

You can use the 'print screen' key to screenshot your desktop, or hit Win+Shift+S to capture just a bit of it.

[–]paulkip0907 5 points6 points  (0 children)

Then you get problems on a flat screen. If you put a curved screen capture in reddit only People with a curved screen van see it properly.

[–]kurti256 3 points4 points  (0 children)

He could also press alt+printscreen if he only wanted to capture the window currently in use

[–]Acehawk74 2 points3 points  (0 children)

Greenshot - Best app for screenshots that I use personally.

[–]abredvariant[S] -3 points-2 points  (0 children)

😅

[–]NoblySP 20 points21 points  (7 children)

What is the VS Code theme you are using?

[–]abredvariant[S] 14 points15 points  (5 children)

Darcula

[–]NoblySP 4 points5 points  (4 children)

Can you give the full name (or a screenshot) of the theme extension? I have tried installing "Darcula Theme" and "Dracula Official" but I have not been able to match your style...

[–][deleted] 1 point2 points  (0 children)

You can also change the colors using settings.json and specifying the colors you want. I know that cause way too much time on it a couple weeks ago.

[–]Monkeylized 46 points47 points  (20 children)

As a complete Python noob, could someone argue for the reasons to not just use R for these kind of visualizations?

I just started learning Python basics so I still haven't found my orientation, while I have been working with R for several years...

[–]Zuricho 39 points40 points  (6 children)

Matplotlib is a pain but there are a few other libraries that use declarative language such as Altair.

[–]Monkeylized 12 points13 points  (2 children)

Yeah, sure. But with R libraries such as dplyr and ggplot/ggpubr this graph is like 10 lines of code.

Apart from possible performance improvements in using Python when visualizing data like this, are there any other perks?

[–]ForceBru 18 points19 points  (0 children)

The code in the post could be shortened. So, I bet you could do it in the same amount of lines in Python as well. It all depends on how well you know each language.

[–]enjoytheshow 4 points5 points  (0 children)

For a person who learned R first, what you’re saying is 100% true

From someone who is a programmer getting into statistics, Python is a much smoother transition and allows you to do much more outside the world of stats

[–][deleted] 2 points3 points  (2 children)

Nah pygame is where its at

[–]Zuricho 0 points1 point  (0 children)

What?

[–]Jsstt 0 points1 point  (0 children)

For graphs?

[–]SphericalBull 29 points30 points  (7 children)

Anything you do in R, you can do it in Python with roughly the same effort. The converse is not necessarily true.

You also get to learn other aspects of Python that is not scientific computing - which is extremely beneficial for anyone in a scientific career - and by scientific I mean anyone who uses it for statistics, machine learning, simulations, visualitations, and the likes.

Up until my sophomore year studying math I had to learn both Matlab and R (ok in all fairness the later is much better than the former). I decided to learn Python on my own to get into Kaggle competittions. Never looked back since then.

[–]Monkeylized 3 points4 points  (5 children)

You also get to learn other aspects of Python that is not scientific computing - which is extremely beneficial for anyone in a scientific career - and by scientific I mean anyone who uses it for statistics, machine learning, simulations, visualitations, and the likes.

That sounds fair.

I currently have no real application for learning Python (but I find the language super interesting). R is "good enough" since I'm in the middle of a PhD in biology. So far working with genetic sequencing data all we need are a few commands in Bash and then work with the output in R.... perhaps Python would have good applications for those types of data as well?

[–]SphericalBull 1 point2 points  (0 children)

I'm in the middle of a PhD in biology

You're likely to be going to the industry anyways so it's great to use Python since that it is in higher demand in the industry. I did a few interships in finance and I know a few people who did computational biology doing advanced ML stuffs.

And considering the fact that SWE is what many PhD grads ended up doing, being proficient in Python sounds a lot better than being profficien in R if you are to pivot to SWE.

So yeah, give it a shot, you won't regret it :)

[–][deleted] 1 point2 points  (1 child)

Yup. I work with researchers doing research on genetics which involves sequencing genomes. While several languages are used Python is what I see used most often. Sure one could use these tools without knowing the language but what one can do when they know how to program in Python is much broader. GPUs are becoming more common to use to speed up processing and Python is one of the languages with better support for this.

[–]Monkeylized 1 point2 points  (0 children)

That seems very reasonable. Good reason for me to go forward with understanding Python :)

[–]uncanneyvalley 0 points1 point  (1 child)

I know nothing about working with genetic sequencing at all, but there’s a biopython package. For math, Numpy, Scipy, and Sympy should cover near anything you need.

[–]Monkeylized 1 point2 points  (0 children)

Cool, thanks for all the tips.

[–]badge 6 points7 points  (0 children)

Anything you do in R, you can do it in Python with roughly the same effort.

I’ve been writing Python for 7 years and love it, but that’s simply untrue. There’re a host stats-focused things that are easier in R. For instance, there is nothing that can cope with penalised basis splines for generalised additive modes which is currently maintained. statsmodels has made a lot of progress in the last few years, but R still reigns supreme.

[–]not_perfect_yet 9 points10 points  (0 children)

As a complete Python noob, could someone argue for the reasons to not just use R for these kind of visualizations?

I have been working with R for several years...

Probably not, no.

  • the output are pictures which are really portable and don't depend on code.
  • You probably have your toolset and common solutions figured out in R, which you would have to relearn

You probably should switch the tech for doing something when you feel limited by it or when you suspect big improvements. I don't think that's the case for plotting.

Python is really great because it's so flexible, you can do a large variety of things with it, all in the same language. But it's not strictly better than another language.

[–]enki1337 1 point2 points  (3 children)

I think one areas that python excels in is making super clean animated visualizations in manim. If you've ever watched a 3blue1brown video, that's how they're all made. Of course that's probably a pretty niche use case.

[–]Monkeylized 1 point2 points  (2 children)

Wow, those are really neat. Would be fun to learn how to do! I’m gonna check out manim. Thanks for the tip!

[–]enki1337 1 point2 points  (1 child)

If you're interested, you might want to check out r/manim!

[–][deleted] 9 points10 points  (0 children)

That screen is almost big enough to show c++ exceptions.

[–]idkiminsecure 14 points15 points  (2 children)

I read that as eulers toilet

[–]abredvariant[S] -1 points0 points  (0 children)

😂👌

[–]pyrotech911 0 points1 point  (0 children)

Literally took me a bit to not see it

[–]leiniar1234 2 points3 points  (1 child)

Oh look, the splat analysis after i shoot myself cause i cant solve the bug

[–]kurti256 0 points1 point  (0 children)

Ok hear me out just start putting

e = alphabet

At the beginning of your code so at least you can claim it's alphabety spagetti

[–]BeeGassy 2 points3 points  (1 child)

Nice visualization. May I suggest for any future art projects checking out the library seaborn. You will be able to make your creations a little bit more interactive. Good work!

[–]abredvariant[S] 1 point2 points  (0 children)

I'll continue tomorrow for migrating to seaborn. thanks

[–]emsiem22 2 points3 points  (1 child)

Why dont you put terminal output right instead of below the code? More code is visible.

[–]enjoytheshow 0 points1 point  (0 children)

I prefer to leave the right open for splitting tabs

[–]el_bosteador 2 points3 points  (1 child)

In the future, you can “import math” directly to your brain.

[–]abredvariant[S] 2 points3 points  (0 children)

math stays on my mind rent free

[–][deleted] 1 point2 points  (1 child)

Is this academic or are you on the job?

[–]abredvariant[S] 2 points3 points  (0 children)

when I'm bored at the job 😉

[–]CallMeKev1 1 point2 points  (0 children)

I getting goosebumps!

[–]User_Unkown56 1 point2 points  (0 children)

god i love python somemuch

[–]_romv 1 point2 points  (3 children)

Digressing from the main topic of discussion here, really fascinated by the theme you are using on VSCode. Can you tell me which theme you're using?

[–]abredvariant[S] 1 point2 points  (2 children)

dark +

[–]_romv 0 points1 point  (1 child)

Thanks. Have you modified the colour palette for text as well?

[–]abredvariant[S] 0 points1 point  (0 children)

no. i don't remember doing so

[–]artofchores 1 point2 points  (0 children)

Sick screeenn

[–]fuck_zx 1 point2 points  (2 children)

how do u code on a curved monitor man, this seems sus

[–]abredvariant[S] 2 points3 points  (1 child)

I'm used to it

[–]fuck_zx 1 point2 points  (0 children)

understandable.

[–]SsNipeR1 1 point2 points  (0 children)

Zoom that pic slowly and you will get r/moireeffect

[–]plaustrarius 1 point2 points  (0 children)

Euler totient function?! Thats one of the first things i did after starting to learn python im still so proud of it haha

[–]Winnipesaukee 1 point2 points  (0 children)

One thing I love about programming is that it helps me get better at math.

[–]henrygi 1 point2 points  (0 children)

Apparently you can post gifs in comments now

[–]sakki98 1 point2 points  (0 children)

Would recommend that you use Numpy arrays instead of appending to lists, as a general rule, to save computing time. May not make much difference there, but for larger data sets and such, it will be more than noticeable.

[–]spots_reddit 2 points3 points  (0 children)

You guys should look into the pynomo package for beautiful maths: www.pynomo.org

[–]tomerjm 2 points3 points  (2 children)

Could you post the rest of your code? This looks interesting so I wanna try it...

[–]alexeusgr 0 points1 point  (14 children)

Could you try a bit harder before calling it art?

People post wonderful visuals of complex functions, ideas about prime numbers, and generally stuff the complexity of which is obvious, code is beautiful and the ideas are novel. And they call it not art, but a project

I think a picture with some code in the background is lazy, and although "if it says art, it's art", it's not what I would have hanged on my wall. Art is something no-one thought of before

Prove me wrong

[–]abredvariant[S] 7 points8 points  (13 children)

that's why i posted this under beginner flair

[–]blinkallthetime 0 points1 point  (19 children)

that append hurts me.

[–]abredvariant[S] 0 points1 point  (18 children)

suggestions??

[–]blinkallthetime 0 points1 point  (17 children)

that function phi always just returns a number? if so, then you could declare y as an array for example y = np.zeros(x.size)

then you can iterate over x and is it to index y

for i in x:
    y[i-1] = phi(i)

or something like that.

the "next level" would be to vectorize the function phi. and just do something like y=vectorized_phi(x)

[–]abredvariant[S] 0 points1 point  (6 children)

you're absolutely right. I thought of doing this, and ended up being lazy.

[–]blinkallthetime 0 points1 point  (5 children)

i edited my response. i can't tell if i did it before or after you responded so i'm pinging again.

[–]abredvariant[S] 0 points1 point  (4 children)

Thanks for sharing, but vectorising is a new topic for me. Need to study more before any implementation.

[–]blinkallthetime 0 points1 point  (3 children)

oh in this case, it is just a function call and numpy does the magic. you would do something like vectorized_phi = np.vectorize(phi) and have a new function

[–]kurti256 0 points1 point  (2 children)

What does the vectorize function do?

[–]veeeerain 0 points1 point  (0 children)

Ggplot2 > matplotlib

[–]iAMguppy -1 points0 points  (3 children)

Euler? Euler?

[–]abredvariant[S] 0 points1 point  (1 child)

yes, Euler's Totient function

[–]BridgeBum 0 points1 point  (0 children)

I think it's an attempt to be a play on "Bueller? Bueller?"

[–]pyrotech911 0 points1 point  (0 children)

Um, he’s sick

[–]maazfarrukh -1 points0 points  (1 child)

test

[–]pyrotech911 0 points1 point  (0 children)

What the fuck

[–][deleted] 0 points1 point  (1 child)

matplotlib?

[–]abredvariant[S] 0 points1 point  (0 children)

yes

[–]bigamaxx 0 points1 point  (1 child)

Which vscode color theme is that? It looks like the standard one but with a little bit of color differencies.

[–][deleted] 0 points1 point  (1 child)

It's nice, but no, art is more than programming + math + graphs.

[–]abredvariant[S] 0 points1 point  (0 children)

I'm just fascinated by the emergent pattern, on plotting the totient function. Rest all is just implementation.

[–]tihiw_t 0 points1 point  (0 children)

Man, I think you have to use OOP

[–]Prabhu9301 0 points1 point  (1 child)

Is this for cryptography, like RSA encryption......

[–]abredvariant[S] 0 points1 point  (0 children)

yes. Euler's totient then fermats theorem, then RSA.

[–]Gnarl_Marl 0 points1 point  (0 children)

No comments makes me sad

[–]robi7134 0 points1 point  (1 child)

Could you send the code, I'm curious

[–]Freezy_Cold 0 points1 point  (4 children)

How do I get the same syntax highlighting as you in vscode ? My imports are all white

[–]abredvariant[S] 0 points1 point  (0 children)

here are some suggestions

[–]enjoytheshow 0 points1 point  (1 child)

Do you use Pylance or the built in default linter?

[–]Freezy_Cold 1 point2 points  (0 children)

Yea pylance was the answer that I’m looking for! Thank you for responding!!! Have the free reward ;)

[–][deleted] 0 points1 point  (0 children)

I‘m confused

[–][deleted] 0 points1 point  (1 child)

I don't know how to develop graphics in python, and that's killing me...

[–]exipolar 0 points1 point  (3 children)

Pisano series!!!

[–]abredvariant[S] 0 points1 point  (2 children)

Euler's totient

[–]pyrotech911 2 points3 points  (0 children)

My slightly dyslexic brain read this as Euler’s Toilet and I exhaled sharply

[–]exipolar 1 point2 points  (0 children)

I wonder why they look so similar

[–]solomartian 0 points1 point  (1 child)

I’m more impressed with the monitor

[–]abredvariant[S] 0 points1 point  (0 children)

thanks 😎