#绘制条形图
import numpy as np
import matplotlib.pyplot as plt
y=[]
plt.figure(1)
width=1
for i in range(len(y)):
plt.figure(1)
plt.bar(i*width,y[i],width)
plt.xlabel("X")
plt.ylabel("Y")
plt.show(...
分类:
其他好文 时间:
2015-01-04 17:13:16
阅读次数:
169
自定义的tabbar 在push的时候 该如何隐藏tab bar呢,在这里分享一下我的解决办法...
分类:
移动开发 时间:
2015-01-02 16:03:27
阅读次数:
167
题目:(Stack)Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in ...
分类:
其他好文 时间:
2015-01-01 06:41:45
阅读次数:
124
原文:http://www.adequatelygood.com/JavaScript-Scoping-and-Hoisting.html===翻译开始===你知道下面的JavaScript脚本执行结果是什么吗?1 var foo=1;2 function bar(){3 if(!foo){...
分类:
编程语言 时间:
2014-12-31 19:58:45
阅读次数:
292
Insert title here auto move no-drop col-resize all-scroll pointer not-allowed row-resize crosshair progress e-resize ne-resize default ...
分类:
编程语言 时间:
2014-12-31 16:09:46
阅读次数:
273
Set Scroll Normal1echo "pointer = 1 2 3 4 5 6 7 8 9 10 11 12" > ~/.Xmodmap && xmodmap .XmodmapSet Scroll Inverted/Reverse1echo "pointer = 1 2 3 5 4 6 ...
分类:
系统相关 时间:
2014-12-30 22:06:29
阅读次数:
256
1. 滚动 以下是三种实现方式: 1) 利用原生的css属性 overflow: scroll内容区域 Notice: 在android 有bug, 滚动完后会回退到最顶端的内容区域,解决办法是使用后两种方式实现 2)js 编程实现 思路:对比手指在屏幕上移动前后位置变化改变内容元素co...
分类:
移动开发 时间:
2014-12-30 16:57:46
阅读次数:
194
# -*- coding: utf-8 -*-import argparseargs = "-f hello.txt -n 1 2 3 -x 100 -y b -z a -q hello @args.txt i_am_bar -h".split() # 使用@args.txt要求fromfile_p...
分类:
编程语言 时间:
2014-12-30 13:11:57
阅读次数:
212
分为2大类,一种是时间可控的移动,暂且叫平滑移动,另一种则是瞬间移动了。
1.通过直接更改view的left,top,right,bottom的方法(瞬间移动)
layout(r,t,r,b);
offsetLeftAndRight(offset);
offsetTopAndBottom(offset);
2.scroll方法(瞬间移动)
scrollTo(x,y);...
分类:
移动开发 时间:
2014-12-29 16:55:28
阅读次数:
139
喜大普奔迎新年!Merry Christmas!We are happy to announce the release of kbmMW v. 4.60.00Professional and Enterprise Edition.kbmMW continues to set the bar for...
分类:
其他好文 时间:
2014-12-29 08:52:49
阅读次数:
144