- 110

Python plotly 그라데이션 색 점 찍기

www.w3schools.com/colors/colors_hsl.asp Colors HSL Colors HSL HSL Colors HSL color values are supported in IE9+, Firefox, Chrome, Safari, and in Opera 10+. HSL stands for hue, saturation, and lightness. HSL color values are specified with: hsl(hue, saturation, lightness). Hue Hue is a degree on the color w www.w3schools.com 이 사이트에서 채도랑 명도를 체크해서 어느 정도로 할 건지 미리 보고 결정을 한다 color = ['hsl(' + str(h) +..

Programming/Python 2020.10.10

git 계정 여러개 (.gitconfig 설정)

환경: Windows 10, git bash 개인 github만 썼어서 아무 생각없이 git을 썼는데 회사 다니니까 키가 따로 필요해졌다 1. SSH Key 생성 #ssh rsa key 생성 #default 2048, -b 4096 $ssh-keygen -t rsa -C "GITHUB_MAIL" 키를 생성할 때 이름을 정해준다 비밀번호는 만들지 않고 생성했다 생성이 완료되면 ~/.ssh 밑에 - my_github : private key - my_github.pub : public key 공개키와 비밀키 페어로 키가 생성이 된다 (~ : $HOME이고 echo $HOME하면 어딘지 알 수 있다, 바꾸고 싶으면 Path 수정) 2. Github에 SSH 등록 Github에서 Setting에 SSH keys..

Python plotly scatter, scattergeo, layout geo, 화면 분할

- 창 분할하기 def draw_graph(): # 그래프 그릴 때 필요한 정보값들 미리 준비해놓기 # x축의 값을 맡아줄 변수 셋팅 x = [i for i in range(TEST_VIDEO_MAX)] # 위아래 분할로 만들기 fig = make_subplots( rows=2, cols=1, # 분할의 타입을 먼저 설정해줘야함 specs=[[{"type": "xy"}], [{"type": "scattergeo"}]], ) - 반복문 돌면서 값 여러 개 넣기 # list or dict 안에 있는 클래스의 리스트의 값을 넣고 싶을 때.. for i, log in enumerate(log_dict.values()): #scatter 형태로 fig.add_trace(go.Scatter( #아까 만든 x축 해줄..

Programming/Python 2020.07.23

Python Plotly 하다가 레퍼런스 잘 안나와서 모아놓는 document들

# 사용한 버전 pip install plotly==4.9.0 #dragmode: 드래그 모드 어떤 걸로 할지 설정하는거 #['orbit', 'turntable', 'zoom', 'pan', False] - '어떻게 만들어야할지 모르겠다 or 이렇게 어떻게 함'일 때 찾아보는 다른 사람들의 그래프 chart-studio.plotly.com/ Plotly | Make charts and dashboards online chart-studio.plotly.com 여기에 하고 싶은 거 검색한 다음에 editor로 들어가서 이것저것 눌러서 바까도 보고 내 코드에 적용하고 싶으면 JSON에서 attribute값 보고 그대로 적용하면 됨 - scattergeo 지도 종류 보기 (그림) plotly.com/pytho..

Programming/Python 2020.07.23

오큘러스에 .apk 파일로 앱 설치 (Oculus Go)

https://developer.oculus.com/documentation/native/android/mobile-device-setup/ Device Setup This topic shows how to set up an Oculus Android device for running, debugging, and testing applications. The currently supported Oculus devices that run Android are Oculus Quest and Oculus Go. Note: To set up an Oculus Rift for development, see the Rift N developer.oculus.com 오큘러스 홈페이지에 나와있는 이 순서대로 진행하면 ..

Web | App/Android 2020.07.20

zsh에서 vim theme 적용, syntax highlight가 안될 때

그냥 맥을 받아서 적응하고 있는데 zsh가 디폴트여서 그냥 쓰고 있다 어차피 ssh 연결로 주로 쓰고 있어서 딱히 불편함이 없었는데.. 최근에 zsh로 vim을 사용해서 파일을 열었는데 색이 하나도 안칠해져있더라 정말 참을 수 없어 그래서 찾아보니까 ls -alh -> .vimrc 리스트 봤을 때 .vimrc가 있어야하는데 없더라 touch .vimrc vim .vimrc INPUT: syntax on 그래서 touch로 그냥 생성하면 된다길래 생성하고 들어가서 syntax on 이라 넣어주고 저장하면 ㅠㅠ색이 생겼다