首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • Plotting will not work.

    9900编辑于 2025-07-22
  • 来自专栏Albert陈凯

    2018-12-20 WARNING: Plotting with an unknown terminal. No output will be generated. Please sele...

    history 2421 ruby mat_anim.rb -s=0 | gnuplot https://stackoverflow.com/questions/32086405/warning-plotting-with-an-unknown-terminal-no-output-will-be-generated-pleas

    2.1K30发布于 2018-12-27
  • 科研绘图系列:R语言绘制SCI论文代码合集

    #bind them back together plotting <- rbind(plotting, plotting_1) plotting <-(plotting[complete.cases( plotting[,colnames(plotting) %in% Antigen.Order]),]) #transpose plotting_t <- t(plotting[,c(colnames (plotting) %in% Antigen.Order)]) #add column names colnames(plotting_t) <- paste(plotting$id, plotting without 1 month data plotting <-(plotting[complete.cases(plotting[,colnames(plotting) %in% Antigen.Order (plotting_t) <- paste(plotting$id, plotting$timepoint, sep = "_") colnames(plotting_t) <- paste(plotting

    31410编辑于 2025-02-19
  • 来自专栏脑机接口

    Nilearn教程系列(2)-3D和4D niimgs:处理和可视化

    motor_images.images) tmap_filename = motor_images.images[0] 第二步:可视化 # 我们将3D数据,可视化为统计图 from nilearn import plotting plotting.plot_stat_map(tmap_filename) ? """ # 设置阈值来绘制效果图 这里的阈值设置为3 threshold=3 """ plotting.plot_stat_map(tmap_filename, threshold=3) ? 中索引从0开始 """ first_rsn = image.index_img(rsn, 0) print(first_rsn.shape) (91, 109, 91) """ 绘制第一组数据 """ plotting.plot_stat_map 循环绘制4D文件中的所有组(卷)-volumes """ for img in image.iter_img(rsn): # img is now an in-memory 3D img plotting.plot_stat_map

    93810发布于 2020-06-30
  • 来自专栏数据分析与挖掘

    pycaret模型分析之绘制模型结果

    = setup(data = diabetes, target = 'Class variable') # creating a model lr = create_model('lr') # plotting import * reg1 = setup(data = boston, target = 'medv') # creating a model lr = create_model('lr') # plotting pycaret.anomaly import * ano1 = setup(data = anomalies) # creating a model iforest = create_model('iforest') # plotting import * nlp1 = setup(data = kiva, target = 'en') # creating a model lda = create_model('lda') # plotting Invoice', item_id = 'Description') # creating a model model = create_model(metric = 'confidence') # plotting

    96330发布于 2020-10-27
  • 来自专栏气象杂货铺

    气象领域最强Python教程

    Python科学应用库基础教程 Jupyter Notebooks Introduction to Notebooks Plotting and Interactivity Numpy Introduction Pythonic Data Analysis Introduction to Data Analysis Advanced Data Analysis Time Series Time Series Plotting Overview Model Output Downloading Model Data with NCSS SkewT SkewTs and Hodographs Satellite Analysis Plotting Satellite Data GOES Interactive Plotting Surface Analysis Surface Data with Siphon and MetPy Bonus GFS

    4K71发布于 2020-04-21
  • 来自专栏脑机接口

    Nilearn中的基本操作和查看

    print('Path to MNI152 template: %r' % MNI152_FILE_PATH) 第一步:查看数据 # 导入nilearn提供的绘图工具 from nilearn import plotting # 绘制图形 plotting.plot_img(MNI152_FILE_PATH) ? 有多种平滑方式: # 平滑方式一 plotting.plot_img(smooth_anat_img) ? # 平滑方式二 more_smooth_anat_img = image.smooth_img(smooth_anat_img, fwhm=3) plotting.plot_img(more_smooth_anat_img # 保存结果到文件中 more_smooth_anat_img.to_filename('more_smooth_anat_img.nii.gz') plotting.show() 概括说,所有nilearn

    1.6K20发布于 2020-06-30
  • 来自专栏超级架构师

    「首席架构师精选」精选绘图软件

    software) Archim C List of charting software CricketGraph D Data Desk Datacopia DataScene Descartes (plotting Java Simulations EditGrid Euler (software) F FlexPro G Generic Mapping Tools Gnumeric Gnuplot Grace (plotting VisIt W Winplot Wolfram Mathematica X XLfit 原文:https://en.wikipedia.org/wiki/Category:Plotting_software 本文:https://pub.intelligentx.net/wikipedia-plotting-software

    2.1K40发布于 2020-01-14
  • 来自专栏Python数据科学

    pandas 图形可视化大全

    df.plot(subplots=True, layout=(2, 2), figsize=(12, 10), sharex=False) 高级可视化 另一种是pandas的plotting模块 from pandas.plotting import parallel_coordinates plt.figure( figsize=(10,7)) parallel_coordinates(df, from pandas.plotting import radviz plt.figure( figsize=(10,7)) radviz(df, class_column='target') 6) from pandas.plotting import bootstrap_plot np.random.seed(123) data = pd.Series(np.random.rand(1000)) from pandas.plotting import lag_plot spacing = np.linspace(-99 * np.pi, 99 * np.pi, num=1000) data =

    66110编辑于 2023-08-29
  • 来自专栏IT从业者张某某

    seaborn从入门到精通04-主题颜色设置与总结

    sns.set_style(“ticks”) # 四周加边框和刻度 环境(context) 设置环境的方法也有3种: set,通用设置接口 set_context,环境设置专用接口,设置后全局绘图环境随之改变 plotting_context ,设置当前图(axes级)的绘图环境,同时返回设置后的环境系列参数,支持with关键字用法 sns.plotting_context("notebook") # 默认 sns.plotting_context ("paper") sns.plotting_context("talk") sns.plotting_context("poster") 可以看出,4种默认绘图环境最直观的区别在于字体大小的不同,而其他方面也均略有差异

    87010编辑于 2023-10-16
  • 脚本更新----visium数据的细胞类型距离分析

    (median(PTC_myCAF_distance$min)) )distances_overview = mean_median_min_distancesdistances_overview_plotting names_to = c("Distance_Group"), values_to = "Distance" )# plots based on medianmedian_distances_plotting <- distances_overview_plotting %>% subset(Distance_Group == "pEMT_myCAF_median" | Distance_Group == "PTC_myCAF_median")# make plot plot <- ggplot(median_distances_plotting, aes(Distance_Group, Distance ")plot <- ggplot(mean_distances_plotting, aes(Distance_Group, Distance)) + geom_boxplot(outlier.size

    34210编辑于 2025-01-13
  • 来自专栏机器学习/数据可视化

    基于MLxtend绘制分类模型的决策边界

    EnsembleVoteClassifier # 从mlxtend导入集成投票表决分类算法from mlxtend.data import iris_data # 内置数据集from mlxtend.plotting X, y=y, clf=clf, legend=2) plt.title(lab) plt.show()高亮测试数据集Highlighting test datafrom mlxtend.plotting clf=clf, legend=2) plt.title(lab)plt.show()基于子图的分类决策边界import matplotlib.pyplot as pltfrom mlxtend.plotting fig = plot_decision_regions(X=X, y=y, clf=clf2, ax=axes[1], legend=1)plt.show()基于多特征的决策边界from mlxtend.plotting ('sepal length')plt.ylabel('petal length')plt.title('SVM on Iris')plt.show()自定义图例legendfrom mlxtend.plotting

    61510编辑于 2024-06-06
  • 来自专栏Python大数据分析

    Pandas库常用方法、函数集合

    pandas.DataFrame.plot.line:绘制线型图 pandas.DataFrame.plot.pie:绘制饼图 pandas.DataFrame.plot.scatter:绘制散点图 pandas.plotting.andrews_curves :绘制安德鲁曲线,用于可视化多变量数据 pandas.plotting.autocorrelation_plot:绘制时间序列自相关图 pandas.plotting.bootstrap_plot:用于评估统计数据的不确定性 ,例如均值,中位数,中间范围等 pandas.plotting.lag_plot:绘制时滞图,用于检测时间序列数据中的模式、趋势和季节性 pandas.plotting.parallel_coordinates :绘制平行坐标图,用于展示具有多个特征的数据集中各个样本之间的关系 pandas.plotting.scatter_matrix:绘制散点矩阵图 pandas.plotting.table:绘制表格形式可视化图

    3K10编辑于 2023-11-22
  • 来自专栏钱塘小甲子的博客

    alphalens教程3--Information Analysis

    def plot_ic_ts(ic, ax=None): alphalens.plotting.plot_ic_ts(ic) ? 3.IC的分布直方图   然后是绘制ic的分布直方图 def plot_ic_hist(ic, ax=None): alphalens.plotting.plot_ic_hist(ic) 这个函数会把 def plot_ic_qq(ic, theoretical_dist=stats.norm, ax=None): alphalens.plotting.plot_ic_qq(ic) ? alphalens.plotting.plot_monthly_ic_heatmap(mean_monthly_ic) ?

    2K30发布于 2019-01-28
  • 来自专栏气象杂货铺

    干货 | Bokeh交互式数据可视化快速入门

    # 导入相关库 from bokeh.plotting import figure, output_notebook, show % matplotlib inline # 准备数据 x = [1, ", line_width=2) # 显示图表 show(p) 上面的例子绘制了一个折线图,简单地展示了bokeh.plotting模块绘图的流程。 一般来说,我们使用bokeh.plotting模块绘图有以下几个步骤: 准备数据 例子中数据容器为列表,你也可以用numpy array、pandas series数据形式 告诉Bokeh在哪生成输出图表 你可以添加多个数据系列,自定义不同的展示风格: from bokeh.plotting import figure, output_notebook, show # 准备三个数据系列 x = [0.1 ,比如说线、点、圆等,并且把多个图表放在一起,Bokeh能够做到: import numpy as np from bokeh.layouts import gridplot from bokeh.plotting

    2.8K10发布于 2020-04-26
  • 来自专栏钱塘小甲子的博客

    alphalens教程2--基于return的因子分析

    alphalens.performance.mean_return_by_quantile( factor_data) 2.绘制均值收益的直方图 把上面获得的第一个参数,也就是mean_return_by_q这一类作为参数,传给alphalens.plotting.plot_quantile_returns_bar 上面的按日期算均值的mean_ret有一个美丽的用法,就是结合alphalens.plotting.plot_quantile_returns_violin绘制提琴图。 alphalens.plotting.plot_quantile_returns_violin(mean_return_by_q_daily) ?                                                                                           std_err=std_err_daily) alphalens.plotting.plot_mean_quantile_returns_spread_time_series alphalens.plotting.plot_cumulative_returns(ls_factor_returns[1]) alphalens.plotting.plot_cumulative_returns

    5.2K31发布于 2019-01-28
  • 来自专栏数据科学与人工智能

    Python 多维数据可视化

    import pandas as pd import matplotlib.pyplot as plt from pandas.plotting import parallel_coordinates import pandas as pd import matplotlib.pyplot as plt from pandas.plotting import radviz data = pd.read_csv import pandas as pd import matplotlib.pyplot as plt from pandas.plotting import andrews_curves data

    2.2K30发布于 2020-10-23
  • 来自专栏程序那些事

    Pandas高级教程之:plot画图详解

    In [88]: from pandas.plotting import andrews_curves In [89]: data = pd.read_csv("data/iris.data") In In [92]: from pandas.plotting import parallel_coordinates In [93]: data = pd.read_csv("data/iris.data In [96]: from pandas.plotting import lag_plot In [97]: plt.figure(); In [98]: spacing = np.linspace In [106]: from pandas.plotting import bootstrap_plot In [107]: data = pd.Series(np.random.rand(1000) In [109]: from pandas.plotting import radviz In [110]: data = pd.read_csv("data/iris.data") In [111

    4.3K41发布于 2021-07-07
  • 来自专栏Python小屋

    使用Jupyter Notebook+bokeh绘图入门完整步骤

    然后在单元格内编写下面的代码: from bokeh.plotting import figure, output_file, show from random import randrange # 生成测试数据 把代码改为: from bokeh.plotting import figure, output_file, show from random import randrange x = list(range 把代码改为: from bokeh.plotting import figure, output_file, show from random import randrange x = list(range

    1.7K60发布于 2018-04-16
  • 来自专栏Python大数据分析

    干货 | Bokeh交互式数据可视化快速入门

    # 导入相关库 from bokeh.plotting import figure, output_notebook, show % matplotlib inline # 准备数据 x = [1, ", line_width=2) # 显示图表 show(p) 上面的例子绘制了一个折线图,简单地展示了bokeh.plotting模块绘图的流程。 一般来说,我们使用bokeh.plotting模块绘图有以下几个步骤: 准备数据 例子中数据容器为列表,你也可以用numpy array、pandas series数据形式 告诉Bokeh在哪生成输出图表 你可以添加多个数据系列,自定义不同的展示风格: from bokeh.plotting import figure, output_notebook, show # 准备三个数据系列 x = [0.1 ,比如说线、点、圆等,并且把多个图表放在一起,Bokeh能够做到: import numpy as np from bokeh.layouts import gridplot from bokeh.plotting

    2.1K10编辑于 2022-04-02
领券