Skip to content

Instantly share code, notes, and snippets.

View TheRochVoices's full-sized avatar
🏠
Working from home

Rochak Saini TheRochVoices

🏠
Working from home
View GitHub Profile
@TheRochVoices
TheRochVoices / ArduinoMQTT.ino
Created May 25, 2018 16:32
Arduino MQTT test
#include <WiFi.h>
#include <PubSubClient.h>
const char* ssid = "******";
const char* password = "*******";
const char* mqttServer = "******";
const int mqttPort = 14314;
const char* mqttUser = "aidjmvrz";
const char* mqttPassword = "5ZQBhUygU0f0";
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
X = [1, 3, 4, 2, 4, 2, 5, 3]
Y = [4, 5, 2, 6, 2, 2, 7, 2]
Z = [8, 5, 7, 2, 6, 7, 2, 3]
ax.scatter(X, Y, Z, c='r', marker='o')
@TheRochVoices
TheRochVoices / plotsize.py
Created June 17, 2018 07:36
Changing plot sizes
#seaborn
plt.subplots(figsize=(16,6))
#matplotlib
from pylab import rcParams
rcParams['figure.figsize'] = 8, 6