# -*- coding: utf-8 -*-"""Created on Tue Nov 04 15:46:32 2014@author: dell"""import numpy as npimport matplotlib.pyplot as pltif __name__ == '__main__...
分类:
其他好文 时间:
2014-11-04 19:36:46
阅读次数:
200
日志还原条件--条件一:检查数据库的恢复模式:Full--条件二:有最后一次的完整备份--条件三:完整备份后未强制截断日志--条件四:故障发生后做过日志备份 CREATE TABLE [dbo].[tb]( [姓名] [varchar](10) NULL, [课程] [varchar](10) NU...
分类:
数据库 时间:
2014-11-04 00:04:12
阅读次数:
296
原生的matplotlib并不支持直接使用中文,而需要修改一下相应的文件,上网搜了下,找到一个最简洁的办法。NO.1找到matplotlibrc文件C:\Python26\Lib\site-packages\matplotlib\mpl-data\matplotlibrc(Windows)/usr/...
分类:
其他好文 时间:
2014-11-03 22:19:55
阅读次数:
113
#Matplotlib中文显示有问题,当然可以修改配置文件matplotlibrc ,不过较为麻烦.其实只要在代码中指定字体就可以了 #第一种方法: # -*- coding: utf-8 -*- from pylab import *...
分类:
其他好文 时间:
2014-11-03 22:14:40
阅读次数:
193
直接使用sudo easy_install matplotlib 报错============================================================================Edit setup.cfg to change the build opti...
分类:
系统相关 时间:
2014-11-03 14:25:05
阅读次数:
488
sklearn的网站上不去,准备编译一下在github中的文档: $ cd scikit-learn-master/doc
$ make html 出现以下错误: Exception occurred:
File "/home/sunlt/Downloads/scikit-learn-master/doc/sphinxext/gen_...
分类:
其他好文 时间:
2014-11-02 12:34:44
阅读次数:
542
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-11-01 06:12:44
阅读次数:
273
1. 平时刷题练习使用
"mswin.vim 插件提供windows下的编辑快捷键功能
source $VIMRUNTIME/mswin.vim
behave mswin
set nu
set history=1000000
set tabstop=4
set shiftwidth=4
set smarttab
set cindent
set nobackup
set noswapfile...
分类:
系统相关 时间:
2014-10-31 22:13:51
阅读次数:
274
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import numpy as np
class AnimatedScatter(object):
"""An animated scatter plot using matplotlib.animations.FuncAnimation."""
...
分类:
其他好文 时间:
2014-10-30 22:43:16
阅读次数:
905
做数据分析,首先是要熟悉和理解数据,所以掌握一个趁手的可视化工具是非常重要的,否则对数据连个基本的感性认识都没有,如何进行下一步的design
Getting Started with Matplotlib
先看个简单的例子,plot,即画线
画线,需要给出线上的点的坐标,然后Matplotlib会自动将点连成线
In [2]: x = range(6) In [3]: plt.plot...
分类:
其他好文 时间:
2014-10-30 21:00:33
阅读次数:
937