axes

Kaggle | ASHRAE The first step(EDA with Python)

可紊 提交于 2020-02-08 05:13:55
ASHRAE - The first step: EDA with Python In this competition we will develop models to predict the energy usage in each building. The dataset contains 1450+ buildings information. Different buildings may have different types of meters. Before we start to build a model, we should have some intuition about the data first. So using visualization tools such as Seaborn we can be more familiar with the data we can get. If you find this notebook interesting or useful, please do not hesitate to vote for me! 1 Start from Here 1.1 Loading Data import pandas as pd import numpy as np import matplotlib .

Get 3d Coordinate Of Mouse In Axis

别来无恙 提交于 2020-02-07 12:29:32
问题 I used below code from link to plot mouse position in axes(when mouse moving in axes) : point = get(gca, 'CurrentPoint'); % mouse click position camPos = get(gca, 'CameraPosition'); % camera position camTgt = get(gca, 'CameraTarget'); % where the camera is pointing to camDir = camPos - camTgt; % camera direction camUpVect = get(gca, 'CameraUpVector'); % camera 'up' vector zAxis = camDir/norm(camDir); upAxis = camUpVect/norm(camUpVect); xAxis = cross(upAxis, zAxis); yAxis = cross(zAxis, xAxis)

matplotlib堆叠柱状图

对着背影说爱祢 提交于 2020-01-31 08:36:44
import numpy as np import pandas as pd import matplotlib . pyplot as plt df1 = pd . DataFrame ( { 'A' : [ 1 , 2 , 3 ] , 'B' : [ 4 , 5 , 6 ] , 'C' : [ 7 , 8 , 9 ] } ) fig , axes = plt . subplots ( 1 , 2 , figsize = ( 10 , 6 ) ) df1 . plot ( kind = 'bar' , colormap = 'Blues_r' , stacked = True , grid = True , ax = axes [ 0 ] ) df1 . plot ( kind = 'bar' , colormap = 'Reds_r' , stacked = False , grid = True , ax = axes [ 1 ] ) 来源: CSDN 作者: chaoqichaoluoe 链接: https://blog.csdn.net/chaoqichaoluoe/article/details/104119280

python-绘图、matplotlib、jupyter

不问归期 提交于 2020-01-28 19:13:36
文章目录 matplotlib jupyter matplotlib Pyplot’s state-machine environment behaves similarly to MATLAB and should be most familiar to users with MATLAB experience. figure The whole figure. The figure keeps track of all the child Axes, a smattering of ‘special’ artists (titles, figure legends, etc), and the canvas. (Don’t worry too much about the canvas, it is crucial as it is the object that actually does the drawing to get you your plot, but as the user it is more-or-less invisible to you). A figure can have any number of Axes, but to be useful should have at least one. Axes This is what you think

How to set same scale for domain and range axes JFreeChart

≯℡__Kan透↙ 提交于 2020-01-26 10:54:06
问题 I would like to create pole/zero plot similar to pole/zero plot. It is for displaying IIR and FIR filters properties like stability, type... My question is: How can I set same scale (not range) for both axes? I use ScatterPlot for chart. JFreeChart chart = ChartFactory.createScatterPlot("Pole/zero plot", // chart // title "real", // x axis label "imaginary", // y axis label result, // data PlotOrientation.VERTICAL, true, // include legend true, // tooltips false // urls ); XYPlot plot =

matplotlib画箱线图(简易版)

我与影子孤独终老i 提交于 2020-01-21 12:03:54
关键函数—— plt.boxplot() 快速示例—— import matplotlib . pyplot as plt fig , axes = plt . subplot ( ) axes . boxplot ( list ) # list是要画箱线图的一组数据,假设定义过了 plt . show ( ) LET’S GO NOW >>> 0. 导入库并定义 import matplotlib . pyplot as plt 1. 生成坐标(画板figure、轴axes) figure , axes = plt . subplots ( ) 如要生成 n行m列 个坐标图,只需 plt.subplots(nrows=n, ncols=m) 还可以通过 plt.subplots(figsize=(5,4)) 设定图纸大小 2. 根据数据绘图 假设数据就是最普通的列表:list1, list2, …… (不一定非要用numpy的ndarray格式) ①画一组数据的箱线图: axes . boxplot ( list1 , labels = [ '自定义轴标签名字' ] ) ②画多组数据的箱线图(同一个坐标图上): axes . boxplot ( [ list1 , list2 , list3 ] , labels = [ 'apples' , 'pears' , 'bananas

Remove zoom from GUI axes in Matlab

谁都会走 提交于 2020-01-17 01:19:07
问题 I am new to MATLAB, and I have added a logo on the GUI using UIpanel and axes method. But since its an axes over which my image is getting displayed, there is the Zoom(magnifying glass) cursor which I would like to remove but I am unable to. When I created the axes inside the Uipanel, I did not get the createfuncn and callback which usually gets generated automatically, So how should I proceed with it. Thanks in Advance 回答1: You can turn off zoom using zoom off or zoom(f, 'off') , where f is

how to save imageof axes for high resolution in matlab GUI

我是研究僧i 提交于 2020-01-16 19:04:08
问题 I trying save image with the comand 'getframe' but resolution is very low, so I can not give zoom. for now I'm using the code: [arq,dir] = uiputfile('*.jpg','Output Files'); fileName=fullfile(dir,arq); f=getframe(handles.axes1); [x,map]=frame2im(f); imwrite(x,fileName,'jpg'); I need save in jpg and also need save the label (x,y) in graph. How do ? There is another command better than the getframe?? Print is a good command? Thanks 回答1: try using something other than jpg, it doesn't scale well.

利用纯m文件生成ui(二)

别来无恙 提交于 2020-01-14 12:22:04
利用纯m文件生成ui之简单版canny边缘提取 布局部分 %get the cannyedge of the pictures. %调用说明: %选择自己图片并且导入点击按钮即可(测试版) % 版本号V1.0,编写于2019年12月12号 作者:neverland! %% h = figure('menubar','none',... 'NumberTitle','off',... 'Name','20177740--neverland的课程设计',... %窗口对象 'Position',[300 120 1000 800],... 'tag','figure1'); %坐标轴1 axes1 = axes('Units','pixels',... 'Parent',h,... 'position',[100 200 300 350],... 'XTick',[],... 'YTick',[],... 'Box','on',... 'tag','ax0'); %坐标轴2 axes2 = axes('Units','pixels',... 'Parent',h,... 'Position',[600 200 300 350],... 'XTick',[],... 'YTick',[],... 'Box','on',... 'tag','ax1'); %菜单作为控制按钮,选择原始图像

How do I plot points with two different y-axis ranges on the same panel in the same X axis?

霸气de小男生 提交于 2020-01-13 19:19:24
问题 I am trying to create a scatterplot using ggplot that shares an X axis but has a Y axis with two different scales. The bottom of the Y axis has three scales from 0% to 0.1%, then 0.1% to 1%, and then finally regular intervals by 10%. An example from here: Is there a way to produce something like this in R using ggplot? Would I be modifying the axes? Overlaying several plots on the same panel? Or something else? 回答1: Generally discontinuous axes are not recommended within ggplot2, for reasons